Lines Matching refs:Variant
127 TEST(Variant, Assignment) { in TEST() argument
130 Variant<int, bool, float> v; in TEST()
138 Variant<int, bool, float> v; in TEST()
148 Variant<int, bool, float> v; in TEST()
158 Variant<int, bool, float> v; in TEST()
168 Variant<int, bool, float> v; in TEST()
175 Variant<int, bool, float> v; in TEST()
187 Variant<int, std::string> v; in TEST()
194 Variant<int, std::string> v; in TEST()
203 Variant<int, std::string> v; in TEST()
212 Variant<int, std::string> v; in TEST()
221 Variant<const char*> v1; in TEST()
222 Variant<std::string> v2; in TEST()
232 Variant<int> a(1); in TEST()
233 Variant<int> b; in TEST()
243 Variant<int*, char*> v; in TEST()
256 Variant<int*, char*> v; in TEST()
273 Variant<IntRef> v; in TEST()
285 TEST(Variant, MoveAssignment) { in TEST() argument
287 Variant<std::string> v; in TEST()
297 Variant<std::string> v("test"); in TEST()
307 Variant<std::string> a("test"); in TEST()
308 Variant<std::string> b; in TEST()
318 Variant<std::string> a("test"); in TEST()
319 Variant<std::string> b("fizz"); in TEST()
329 Variant<int, std::string> a("test"); in TEST()
330 Variant<int, std::string> b(10); in TEST()
340 Variant<int, std::string> a(10); in TEST()
341 Variant<int, std::string> b("test"); in TEST()
351 TEST(Variant, Constructor) { in TEST() argument
353 Variant<int, bool, float> v(true); in TEST()
358 Variant<int, bool, float> v(10); in TEST()
363 Variant<int, bool, float> v(10.1f); in TEST()
368 Variant<float, std::string> v(10.); in TEST()
374 Variant<int, bool, float> v(i.take()); in TEST()
381 Variant<int, bool, float> v(i.get()); in TEST()
388 Variant<int, bool, float> v(b.take()); in TEST()
395 Variant<int, bool, float> v(b.get()); in TEST()
401 Variant<const char*> c("test"); in TEST()
402 Variant<std::string> s(c); in TEST()
408 Variant<int, bool, float> a(true); in TEST()
409 Variant<int, bool, float> b(a); in TEST()
417 Variant<IntRef> v(a); in TEST()
431 TEST(Variant, CopyMoveConstructAssign) { in TEST() argument
436 Variant<int, InstrumentType<int>> v; in TEST()
447 Variant<int, InstrumentType<int>> v; in TEST()
459 Variant<int, InstrumentType<int>> v(10); in TEST()
470 Variant<int, InstrumentType<int>> v; in TEST()
482 Variant<int, InstrumentType<int>> v(InstrumentType<int>(25)); in TEST()
493 Variant<int, InstrumentType<int>> v(InstrumentType<int>(25)); in TEST()
507 Variant<int, InstrumentType<int>> v(InstrumentType<int>(25)); in TEST()
521 Variant<int, InstrumentType<int>> v(InstrumentType<int>(25)); in TEST()
537 Variant<int, InstrumentType<int>> v(TestType<int>(10)); in TEST()
548 Variant<int, InstrumentType<int>> v(TestType<int>(10)); in TEST()
561 Variant<int, InstrumentType<int>> v(TestType<int>(10)); in TEST()
563 v = Variant<int, InstrumentType<int>>(); in TEST()
575 Variant<int, InstrumentType<int>> v(other); in TEST()
587 Variant<int, InstrumentType<int>> v(TestType<int>(0)); in TEST()
601 Variant<int, InstrumentType<int>> v(InstrumentType<int>(25)); in TEST()
617 TEST(Variant, MoveConstructor) { in TEST() argument
620 Variant<std::unique_ptr<int>> v(std::move(pointer)); in TEST()
627 Variant<std::unique_ptr<int>> a(std::make_unique<int>(10)); in TEST()
628 Variant<std::unique_ptr<int>> b(std::move(a)); in TEST()
637 TEST(Variant, IndexOf) { in TEST() argument
638 Variant<int, bool, float> v1; in TEST()
644 Variant<int, bool, float, int> v2; in TEST()
663 TEST(Variant, Visit) { in TEST() argument
665 Variant<int, bool, float> v(10); in TEST()
679 Variant<int, bool, float> v; in TEST()
688 Variant<std::string> v("test"); in TEST()
701 TEST(Variant, Become) { in TEST() argument
703 Variant<int, bool, float> v; in TEST()
725 Variant<int, bool, float> v; in TEST()
750 Variant<std::string> v; in TEST()
758 Variant<std::string> v; in TEST()
766 Variant<std::string> v("foo"); in TEST()
774 TEST(Variant, Swap) { in TEST() argument
776 Variant<std::string> a; in TEST()
777 Variant<std::string> b; in TEST()
785 Variant<std::string> a("1"); in TEST()
786 Variant<std::string> b; in TEST()
796 Variant<std::string> a; in TEST()
797 Variant<std::string> b("1"); in TEST()
807 Variant<std::string> a("1"); in TEST()
808 Variant<std::string> b("2"); in TEST()
818 Variant<int, std::string> a(10); in TEST()
819 Variant<int, std::string> b("1"); in TEST()
829 Variant<int, std::string> a("1"); in TEST()
830 Variant<int, std::string> b(10); in TEST()
840 TEST(Variant, Get) { in TEST() argument
842 Variant<int, bool, float, int> v; in TEST()
854 Variant<int, bool, float, int> v; in TEST()
875 Variant<int, bool, float, int> v; in TEST()
900 Variant<int, bool, float, int> v; in TEST()
926 Variant<std::unique_ptr<int>> v(std::make_unique<int>(10)); in TEST()
934 Variant<std::string> v("test"); in TEST()
940 TEST(Variant, IfAnyOf) { in TEST() argument
942 Variant<int, float> v(10); in TEST()
955 const Variant<int, float> v(10); in TEST()
968 Variant<int, float> v(10); in TEST()
982 Variant<std::unique_ptr<int>, int> v(std::make_unique<int>(10)); in TEST()
995 Variant<std::unique_ptr<DerivedType>, int> v( in TEST()
1010 Variant<std::unique_ptr<int>, int> v(std::make_unique<int>(10)); in TEST()
1024 Variant<int, bool, float> v(true); in TEST()
1033 Variant<std::string, int> v("foo"); in TEST()
1044 Variant<std::string, const char*> v(static_cast<const char*>("foo")); in TEST()
1062 Variant<std::string, const char*> v; in TEST()
1071 Variant<std::string, const char*> v(static_cast<const char*>("test")); in TEST()
1080 TEST(Variant, ConstVolatile) { in TEST() argument
1082 Variant<const int> v(10); in TEST()
1088 Variant<const std::string> v("test"); in TEST()
1094 Variant<volatile int, std::string> v(10); in TEST()
1100 TEST(Variant, HasType) { in TEST() argument
1109 TEST(Variant, IsConstructible) { in TEST() argument
1133 TEST(Variant, Set) { in TEST() argument