首页 > TAG信息列表 > variant2

boost::variant2模块实现默认构造相关的测试程序

  boost::variant2模块实现默认构造相关的测试程序     实现功能 boost::variant2模块实现默认构造相关的测试程序 C++实现代码 #include <boost/variant2/variant.hpp> using namespace boost::variant2; #define STATIC_ASSERT(...) static_assert(__VA_ARGS__, #__VA_ARGS

boost::variant2模块转换构造抛出相关的测试程序

  boost::variant2模块转换构造抛出相关的测试程序     实现功能 boost::variant2模块转换构造抛出相关的测试程序 C++实现代码 #if defined(_MSC_VER) # pragma warning( disable: 4702 ) // unreachable code #endif #include <boost/variant2/variant.hpp> #include <boos

boost::variant2模块实现抛出异常的测试程序

  boost::variant2模块实现抛出异常的测试程序       实现功能 boost::variant2模块实现抛出异常的测试程序 C++实现代码 #include <boost/config.hpp> #include <exception> #include <cstdio> namespace boost { void throw_exception( std  

boost::variant2::variant_alternative相关的测试程序

  boost::variant2::variant_alternative相关的测试程序       实现功能 boost::variant2::variant_alternative相关的测试程序 C++实现代码 #include <boost/variant2/variant.hpp> #include <boost/mp11.hpp> #include <boost/core/lightweight_test.hpp> #include <boost