boost-variant
visitor template for boost::variant
I would like to use a boost.variant<T0,T1,T2> as a parameter to a template \'Visitor\' class which would provide visitor operators as required by the boost.variant visitor mechanism, in this cas[详细]
2023-01-14 20:01 分类:问答Iterate std::list<boost::variant>
How would you check for the object type when looping std::list? class A { int x; int y; public: A() {x = 1; y = 2;}[详细]
2023-01-08 23:40 分类:问答How to iterate through a sequence of bounded types with Boost.Variant
struct A { std::string get_string(); }; struct B { int value; }; typedef boost::variant<A,B> var_types;[详细]
2023-01-04 06:12 分类:问答Iterator for boost::variant
Hy there, I\'m trying to adapt an existing code to boost::va开发者_运维百科riant. The idea is to use boost::variant for a heterogeneous vector. The problem is that the rest of the code use iterators[详细]
2023-01-03 06:32 分类:问答Iterating over the types in a boost::variant
I\'m using a boost variant to hold some generated types, right now my开发者_Python百科 code generator creates a header with the types and a variant capable of holding them.At initialization time, I\'d[详细]
2022-12-19 03:17 分类:问答