17 #include <boost/variant.hpp> 41 one, [](
const One&) {
return true; }, [](
const Two&) {
return false; }));
43 two, [](
const One&) {
return false; }, [](
const Two&) {
return true; }));
45 auto toString = [](
const auto& variant) {
47 variant, [](
const auto&
value) {
return value.toString(); });
62 [](
const One*) {
return true; },
63 [](
const Two*) {
return false; }));
66 [](
const One*) {
return false; },
67 [](
const Two*) {
return true; }));
69 auto toString = [](
const auto& variant) {
71 variant, [](
const auto*
value) {
return value->toString(); });
82 [](
const One&) {
return true; }, [](
const Two&) {
return false; });
88 [](
const One&) {
return false; }, [](
const Two&) {
return true; });
93 auto is_one_copy =
overload(is_one_overload);
94 auto is_one_const_copy =
95 overload(
static_cast<const decltype(is_one_overload)&
>(is_one_overload));
#define EXPECT_EQ(val1, val2)
—— Concurrent Priority Queue Implementation ——
std::string toString() const
TEST(ProgramOptionsTest, Errors)
#define EXPECT_TRUE(condition)
std::string toString() const
decltype(auto) apply_visitor(Visitor &&visitor, const DiscriminatedPtr< Args... > &variant)
uint64_t value(const typename LockFreeRingBuffer< T, Atom >::Cursor &rbcursor)
decltype(auto) variant_match(Variant &&variant, Cases &&...cases)
decltype(auto) overload(Cases &&...cases)
#define EXPECT_FALSE(condition)
boost::variant< One, Two > OneOrTwo