Jump to content

  • Log In with Google      Sign In   
  • Create Account

Awesome job so far everyone! Please give us your feedback on how our article efforts are going. We still need more finished articles for our May contest theme: Remake the Classics

#ActualBrother Bob

Posted 23 October 2012 - 06:24 AM

Boost has a class to make integer type selection based on size; boost::int_t<N>. It has three nested typedefs; fast, least and exact, representing the fastest type with at least N bits, the smallest type than can accommodate at least N bits, and a type with exactly N bits. The exact typedef is only available if there actually is a type with that many bits though.

#1Brother Bob

Posted 23 October 2012 - 06:24 AM

Boost has a class to make integer type selection based on size; boost::int_t<N>. It has three nested typedefs; fast, least and exact, representing the fastest type with at least N bits, the smallest type than can accommodate at least N bits, and a type with exactly N bits. The exact typedef is only available if there actually is a type with that many bits though.

PARTNERS