Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>See here: <a href="http://www.boost.org/doc/libs/1_41_0/libs/integer/integer_traits.html" rel="nofollow">http://www.boost.org/doc/libs/1_41_0/libs/integer/integer_traits.html</a></p> <p>Edit: Actually it's not giving you any information about the standard however you can get the min and max value on compile time for certain types.</p> <p>Edit2: According to your update I can suggest you to use <a href="http://www.boost.org/doc/libs/1_44_0/libs/mpl/doc/index.html" rel="nofollow">boost.mpl</a>, <a href="http://www.boost.org/doc/libs/1_44_0/libs/type_traits/doc/html/index.html" rel="nofollow">boost.type_traits</a>and the before mentioned <a href="http://www.boost.org/doc/libs/1_44_0/libs/integer/integer_traits.html" rel="nofollow">boost.integer_traits</a> library.</p> <p>Boost also provides a header called cstdint.hpp (part of the <a href="http://www.boost.org/doc/libs/1_44_0/libs/integer/doc/html/index.html" rel="nofollow">boost.integer</a> library) which defines types like boost::uint32_t or boost::int32_t which will ensure that you get a type which supports 32 Bits. (Of course also for 8, 16 and 64 Bits)</p> <p>With <a href="http://www.boost.org/doc/libs/1_44_0/libs/type_traits/doc/html/index.html" rel="nofollow">boost.type_traits</a> you can for example compare two types if they are equal. You'd be using <a href="http://www.boost.org/doc/libs/1_44_0/libs/type_traits/doc/html/boost_typetraits/reference/is_same.html" rel="nofollow">boost::is_same</a> for it.</p> <p>Boost MPL offers you compile time algorithms, to make conditions etc and integer traits will offer you a compile time way to get the limits for types.</p> <p>HTH</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload