Namespaces | |
implementation | |
Classes | |
struct | bad_lexical_cast |
Thrown when a lexical_cast fails. More... | |
Typedefs | |
typedef boost::mpl::vector < bool, char, signed char, unsigned char, short, int, long, long long, unsigned short, unsigned int, unsigned long, unsigned long long > | test_match_types |
typedef boost::mpl::vector < float, double, long double > | test_nomatch_types |
typedef boost::mpl::copy < test_nomatch_types, boost::mpl::back_inserter < test_match_types > >::type | test_types |
typedef boost::mpl::vector < signed char, short, int, long > | test_lexical_cast_signed_types |
typedef boost::mpl::vector < bool, unsigned char, unsigned short, unsigned int, unsigned long > | test_lexical_cast_unsigned_types |
Functions | |
template<typename To , typename From > | |
To | lexical_cast (From value) |
Lexical cast converts one type to another. More... | |
BOOST_AUTO_TEST_CASE_TEMPLATE (test_lexical_cast_throw, T, test_types) | |
BOOST_AUTO_TEST_CASE_TEMPLATE (test_lexical_cast_signed, T, test_lexical_cast_signed_types) | |
BOOST_AUTO_TEST_CASE (test_lexical_cast_long_long) | |
BOOST_AUTO_TEST_CASE_TEMPLATE (test_lexical_cast_unsigned, T, test_lexical_cast_unsigned_types) | |
BOOST_AUTO_TEST_CASE (test_lexical_cast_unsigned_long_long) | |
typedef boost::mpl::vector< signed char , short , int , long> test_throw::test_lexical_cast_signed_types |
Definition at line 123 of file test_lexical_cast.cpp.
typedef boost::mpl::vector< bool , unsigned char , unsigned short , unsigned int , unsigned long> test_throw::test_lexical_cast_unsigned_types |
Definition at line 163 of file test_lexical_cast.cpp.
typedef boost::mpl::vector< bool, char, signed char, unsigned char, short, int, long, long long, unsigned short, unsigned int, unsigned long, unsigned long long > test_throw::test_match_types |
Definition at line 56 of file test_lexical_cast.cpp.
typedef boost::mpl::vector< float, double, long double > test_throw::test_nomatch_types |
Definition at line 60 of file test_lexical_cast.cpp.
typedef boost::mpl::copy< test_nomatch_types, boost::mpl::back_inserter<test_match_types> >::type test_throw::test_types |
Definition at line 65 of file test_lexical_cast.cpp.
test_throw::BOOST_AUTO_TEST_CASE | ( | test_lexical_cast_long_long | ) |
Definition at line 142 of file test_lexical_cast.cpp.
test_throw::BOOST_AUTO_TEST_CASE | ( | test_lexical_cast_unsigned_long_long | ) |
Definition at line 183 of file test_lexical_cast.cpp.
References validate().
test_throw::BOOST_AUTO_TEST_CASE_TEMPLATE | ( | test_lexical_cast_throw | , |
T | , | ||
test_types | |||
) |
Definition at line 93 of file test_lexical_cast.cpp.
test_throw::BOOST_AUTO_TEST_CASE_TEMPLATE | ( | test_lexical_cast_signed | , |
T | , | ||
test_lexical_cast_signed_types | |||
) |
Definition at line 125 of file test_lexical_cast.cpp.
References validate().
test_throw::BOOST_AUTO_TEST_CASE_TEMPLATE | ( | test_lexical_cast_unsigned | , |
T | , | ||
test_lexical_cast_unsigned_types | |||
) |
Definition at line 165 of file test_lexical_cast.cpp.
|
inline |
Lexical cast converts one type to another.
To | The type to convert to. |
From | The type to convert from. |
value | The value to convert. |
Definition at line 94 of file test_lexical_cast.cpp.