Lines Matching refs:Variant
118 TEST(Variant, Assignment) { in TEST() argument
121 Variant<int, bool, float> v; in TEST()
129 Variant<int, bool, float> v; in TEST()
139 Variant<int, bool, float> v; in TEST()
149 Variant<int, bool, float> v; in TEST()
159 Variant<int, bool, float> v; in TEST()
166 Variant<int, bool, float> v; in TEST()
178 Variant<int, std::string> v; in TEST()
185 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<const char*> v1; in TEST()
213 Variant<std::string> v2; in TEST()
223 Variant<int> a(1); in TEST()
224 Variant<int> b; in TEST()
234 Variant<int*, char*> v; in TEST()
247 Variant<int*, char*> v; in TEST()
264 Variant<IntRef> v; in TEST()
276 TEST(Variant, MoveAssignment) { in TEST() argument
278 Variant<std::string> v; in TEST()
288 Variant<std::string> v("test"); in TEST()
298 Variant<std::string> a("test"); in TEST()
299 Variant<std::string> b; in TEST()
309 Variant<std::string> a("test"); in TEST()
310 Variant<std::string> b("fizz"); in TEST()
320 Variant<int, std::string> a("test"); in TEST()
321 Variant<int, std::string> b(10); in TEST()
331 Variant<int, std::string> a(10); in TEST()
332 Variant<int, std::string> b("test"); in TEST()
342 TEST(Variant, Constructor) { in TEST() argument
344 Variant<int, bool, float> v(true); in TEST()
349 Variant<int, bool, float> v(10); in TEST()
354 Variant<int, bool, float> v(10.1f); in TEST()
359 Variant<float, std::string> v(10.); in TEST()
365 Variant<int, bool, float> v(i.take()); in TEST()
372 Variant<int, bool, float> v(i.get()); in TEST()
379 Variant<int, bool, float> v(b.take()); in TEST()
386 Variant<int, bool, float> v(b.get()); in TEST()
392 Variant<const char*> c("test"); in TEST()
393 Variant<std::string> s(c); in TEST()
399 Variant<int, bool, float> a(true); in TEST()
400 Variant<int, bool, float> b(a); in TEST()
408 Variant<IntRef> v(a); in TEST()
422 TEST(Variant, CopyMoveConstructAssign) { in TEST() argument
427 Variant<int, InstrumentType<int>> v; in TEST()
438 Variant<int, InstrumentType<int>> v; in TEST()
450 Variant<int, InstrumentType<int>> v(10); in TEST()
461 Variant<int, InstrumentType<int>> v; in TEST()
473 Variant<int, InstrumentType<int>> v(InstrumentType<int>(25)); in TEST()
484 Variant<int, InstrumentType<int>> v(InstrumentType<int>(25)); in TEST()
498 Variant<int, InstrumentType<int>> v(InstrumentType<int>(25)); in TEST()
512 Variant<int, InstrumentType<int>> v(InstrumentType<int>(25)); in TEST()
528 Variant<int, InstrumentType<int>> v(TestType<int>(10)); in TEST()
539 Variant<int, InstrumentType<int>> v(TestType<int>(10)); in TEST()
552 Variant<int, InstrumentType<int>> v(TestType<int>(10)); in TEST()
554 v = Variant<int, InstrumentType<int>>(); in TEST()
566 Variant<int, InstrumentType<int>> v(other); in TEST()
578 Variant<int, InstrumentType<int>> v(TestType<int>(0)); in TEST()
589 TEST(Variant, MoveConstructor) { in TEST() argument
592 Variant<std::unique_ptr<int>> v(std::move(pointer)); in TEST()
599 Variant<std::unique_ptr<int>> a(std::make_unique<int>(10)); in TEST()
600 Variant<std::unique_ptr<int>> b(std::move(a)); in TEST()
609 TEST(Variant, IndexOf) { in TEST() argument
610 Variant<int, bool, float> v1; in TEST()
616 Variant<int, bool, float, int> v2; in TEST()
635 TEST(Variant, Visit) { in TEST() argument
637 Variant<int, bool, float> v(10); in TEST()
651 Variant<int, bool, float> v; in TEST()
660 Variant<std::string> v("test"); in TEST()
673 TEST(Variant, Become) { in TEST() argument
675 Variant<int, bool, float> v; in TEST()
697 Variant<int, bool, float> v; in TEST()
722 Variant<std::string> v; in TEST()
730 Variant<std::string> v; in TEST()
738 Variant<std::string> v("foo"); in TEST()
746 TEST(Variant, Swap) { in TEST() argument
748 Variant<std::string> a; in TEST()
749 Variant<std::string> b; in TEST()
757 Variant<std::string> a("1"); in TEST()
758 Variant<std::string> b; in TEST()
768 Variant<std::string> a; in TEST()
769 Variant<std::string> b("1"); in TEST()
779 Variant<std::string> a("1"); in TEST()
780 Variant<std::string> b("2"); in TEST()
790 Variant<int, std::string> a(10); in TEST()
791 Variant<int, std::string> b("1"); in TEST()
801 Variant<int, std::string> a("1"); in TEST()
802 Variant<int, std::string> b(10); in TEST()
812 TEST(Variant, Get) { in TEST() argument
814 Variant<int, bool, float, int> v; in TEST()
826 Variant<int, bool, float, int> v; in TEST()
847 Variant<int, bool, float, int> v; in TEST()
872 Variant<int, bool, float, int> v; in TEST()
898 Variant<std::unique_ptr<int>> v(std::make_unique<int>(10)); in TEST()
906 Variant<std::string> v("test"); in TEST()
912 TEST(Variant, IfAnyOf) { in TEST() argument
914 Variant<int, float> v(10); in TEST()
927 const Variant<int, float> v(10); in TEST()
940 Variant<int, float> v(10); in TEST()
954 Variant<std::unique_ptr<int>, int> v(std::make_unique<int>(10)); in TEST()
967 Variant<std::unique_ptr<DerivedType>, int> v( in TEST()
982 Variant<std::unique_ptr<int>, int> v(std::make_unique<int>(10)); in TEST()
996 Variant<int, bool, float> v(true); in TEST()
1005 Variant<std::string, int> v("foo"); in TEST()
1016 Variant<std::string, const char*> v(static_cast<const char*>("foo")); in TEST()
1034 Variant<std::string, const char*> v; in TEST()
1043 Variant<std::string, const char*> v(static_cast<const char*>("test")); in TEST()
1052 TEST(Variant, ConstVolatile) { in TEST() argument
1054 Variant<const int> v(10); in TEST()
1060 Variant<const std::string> v("test"); in TEST()
1066 Variant<volatile int, std::string> v(10); in TEST()
1072 TEST(Variant, HasType) { in TEST() argument
1081 TEST(Variant, Set) { in TEST() argument