Home
last modified time | relevance | path

Searched refs:empty_struct (Results 1 – 25 of 33) sorted by relevance

12

/third_party/boost/libs/fusion/test/sequence/
Dadapt_assoc_struct_named_empty.cpp30 class empty_struct{}; class
31 BOOST_FUSION_ADAPT_ASSOC_STRUCT_NAMED(::empty_struct,empty_struct,)
43 empty_struct empty; in main()
45 BOOST_MPL_ASSERT((traits::is_view<adapted::empty_struct>)); in main()
46 BOOST_STATIC_ASSERT(traits::is_view<adapted::empty_struct>::value); in main()
47 adapted::empty_struct e(empty); in main()
52 BOOST_STATIC_ASSERT(fusion::result_of::size<adapted::empty_struct>::value == 0); in main()
53 BOOST_MPL_ASSERT((fusion::result_of::empty<adapted::empty_struct>)); in main()
56 fusion::result_of::begin<adapted::empty_struct>::type, in main()
57 fusion::result_of::end<adapted::empty_struct>::type>)); in main()
[all …]
Dadapt_assoc_struct_empty.cpp30 class empty_struct{}; class
31 BOOST_FUSION_ADAPT_ASSOC_STRUCT(empty_struct,)
44 BOOST_MPL_ASSERT_NOT((traits::is_view<empty_struct>)); in main()
45 BOOST_STATIC_ASSERT(!traits::is_view<empty_struct>::value); in main()
46 empty_struct e; in main()
51 BOOST_STATIC_ASSERT(fusion::result_of::size<empty_struct>::value == 0); in main()
52 BOOST_MPL_ASSERT((fusion::result_of::empty<empty_struct>)); in main()
55 fusion::result_of::begin<empty_struct>::type, in main()
56 fusion::result_of::end<empty_struct>::type>)); in main()
61 empty_struct e; in main()
[all …]
Dadapt_struct_named_empty.cpp30 class empty_struct{}; class
31 BOOST_FUSION_ADAPT_STRUCT_NAMED(::empty_struct,empty_struct,)
43 empty_struct empty; in main()
45 BOOST_MPL_ASSERT((traits::is_view<adapted::empty_struct>)); in main()
46 BOOST_STATIC_ASSERT(traits::is_view<adapted::empty_struct>::value); in main()
47 adapted::empty_struct e(empty); in main()
52 BOOST_STATIC_ASSERT(fusion::result_of::size<adapted::empty_struct>::value == 0); in main()
53 BOOST_MPL_ASSERT((fusion::result_of::empty<adapted::empty_struct>)); in main()
56 fusion::result_of::begin<adapted::empty_struct>::type, in main()
57 fusion::result_of::end<adapted::empty_struct>::type>)); in main()
[all …]
Ddefine_assoc_struct_empty.cpp19 BOOST_FUSION_DEFINE_ASSOC_STRUCT(BOOST_PP_EMPTY(), empty_struct, ) in BOOST_PP_EMPTY()
32 BOOST_MPL_ASSERT_NOT((traits::is_view<empty_struct>)); in BOOST_PP_EMPTY()
33 BOOST_STATIC_ASSERT(!traits::is_view<empty_struct>::value); in BOOST_PP_EMPTY()
34 empty_struct e; in BOOST_PP_EMPTY()
39 BOOST_STATIC_ASSERT(fusion::result_of::size<empty_struct>::value == 0); in BOOST_PP_EMPTY()
40 BOOST_STATIC_ASSERT(fusion::result_of::empty<empty_struct>::value); in BOOST_PP_EMPTY()
45 empty_struct e; in BOOST_PP_EMPTY()
55 empty_struct e; in BOOST_PP_EMPTY()
67 typedef fusion::result_of::begin<empty_struct>::type b; in BOOST_PP_EMPTY()
68 typedef fusion::result_of::end<empty_struct>::type e; in BOOST_PP_EMPTY()
[all …]
Ddefine_assoc_tpl_struct_empty.cpp19 BOOST_FUSION_DEFINE_ASSOC_TPL_STRUCT((M), BOOST_PP_EMPTY(), empty_struct, )
32 BOOST_MPL_ASSERT_NOT((traits::is_view<empty_struct<void> >)); in main()
33 BOOST_STATIC_ASSERT(!traits::is_view<empty_struct<void> >::value); in main()
34 empty_struct<void> e; in main()
39 BOOST_STATIC_ASSERT(fusion::result_of::size<empty_struct<void> >::value == 0); in main()
40 BOOST_STATIC_ASSERT(fusion::result_of::empty<empty_struct<void> >::value); in main()
45 empty_struct<void> e; in main()
55 empty_struct<void> e; in main()
67 typedef fusion::result_of::begin<empty_struct<void> >::type b; in main()
68 typedef fusion::result_of::end<empty_struct<void> >::type e; in main()
[all …]
Dadapt_assoc_tpl_struct_empty.cpp31 class empty_struct{}; class
32 BOOST_FUSION_ADAPT_ASSOC_TPL_STRUCT((T), (empty_struct)(T),)
45 BOOST_MPL_ASSERT_NOT((traits::is_view<empty_struct<void> >)); in main()
46 empty_struct<void> e; in main()
51 BOOST_STATIC_ASSERT(fusion::result_of::size<empty_struct<void> >::value == 0); in main()
52 BOOST_MPL_ASSERT((fusion::result_of::empty<empty_struct<void> >)); in main()
55 fusion::result_of::begin<empty_struct<void> >::type, in main()
56 fusion::result_of::end<empty_struct<void> >::type>)); in main()
61 empty_struct<void> e; in main()
71 empty_struct<void> e; in main()
[all …]
Dadapt_struct_empty.cpp30 class empty_struct{}; class
31 BOOST_FUSION_ADAPT_STRUCT(empty_struct,)
44 BOOST_MPL_ASSERT_NOT((traits::is_view<empty_struct>)); in main()
45 BOOST_STATIC_ASSERT(!traits::is_view<empty_struct>::value); in main()
46 empty_struct e; in main()
51 BOOST_STATIC_ASSERT(fusion::result_of::size<empty_struct>::value == 0); in main()
52 BOOST_MPL_ASSERT((fusion::result_of::empty<empty_struct>)); in main()
55 fusion::result_of::begin<empty_struct>::type, in main()
56 fusion::result_of::end<empty_struct>::type>)); in main()
61 empty_struct e; in main()
[all …]
Dadapt_tpl_struct_empty.cpp31 class empty_struct{}; class
32 BOOST_FUSION_ADAPT_TPL_STRUCT((T), (empty_struct)(T),)
45 BOOST_MPL_ASSERT_NOT((traits::is_view<empty_struct<void> >)); in main()
46 empty_struct<void> e; in main()
51 BOOST_STATIC_ASSERT(fusion::result_of::size<empty_struct<void> >::value == 0); in main()
52 BOOST_MPL_ASSERT((fusion::result_of::empty<empty_struct<void> >)); in main()
55 fusion::result_of::begin<empty_struct<void> >::type, in main()
56 fusion::result_of::end<empty_struct<void> >::type>)); in main()
61 empty_struct<void> e; in main()
71 empty_struct<void> e; in main()
[all …]
Ddefine_struct_empty.cpp19 BOOST_FUSION_DEFINE_STRUCT(BOOST_PP_EMPTY(), empty_struct, ) in BOOST_PP_EMPTY()
32 BOOST_MPL_ASSERT_NOT((traits::is_view<empty_struct>)); in BOOST_PP_EMPTY()
33 BOOST_STATIC_ASSERT(!traits::is_view<empty_struct>::value); in BOOST_PP_EMPTY()
34 empty_struct e; in BOOST_PP_EMPTY()
39 BOOST_STATIC_ASSERT(fusion::result_of::size<empty_struct>::value == 0); in BOOST_PP_EMPTY()
40 BOOST_STATIC_ASSERT(fusion::result_of::empty<empty_struct>::value); in BOOST_PP_EMPTY()
45 empty_struct e; in BOOST_PP_EMPTY()
55 empty_struct e; in BOOST_PP_EMPTY()
67 typedef fusion::result_of::begin<empty_struct>::type b; in BOOST_PP_EMPTY()
68 typedef fusion::result_of::end<empty_struct>::type e; in BOOST_PP_EMPTY()
[all …]
Ddefine_struct_inline_empty.cpp19 BOOST_FUSION_DEFINE_STRUCT_INLINE(empty_struct, )
32 BOOST_MPL_ASSERT_NOT((traits::is_view<empty_struct>)); in main()
33 BOOST_STATIC_ASSERT(!traits::is_view<empty_struct>::value); in main()
34 empty_struct e; in main()
39 BOOST_STATIC_ASSERT(fusion::result_of::size<empty_struct>::value == 0); in main()
40 BOOST_STATIC_ASSERT(fusion::result_of::empty<empty_struct>::value); in main()
45 empty_struct e; in main()
55 empty_struct e; in main()
67 typedef fusion::result_of::begin<empty_struct>::type b; in main()
68 typedef fusion::result_of::end<empty_struct>::type e; in main()
[all …]
Ddefine_tpl_struct_inline_empty.cpp19 BOOST_FUSION_DEFINE_TPL_STRUCT_INLINE((M), empty_struct, )
32 BOOST_MPL_ASSERT_NOT((traits::is_view<empty_struct<void> >)); in main()
33 empty_struct<void> e; in main()
38 BOOST_STATIC_ASSERT(fusion::result_of::size<empty_struct<void> >::value == 0); in main()
39 BOOST_STATIC_ASSERT(fusion::result_of::empty<empty_struct<void> >::value); in main()
44 empty_struct<void> e; in main()
54 empty_struct<void> e; in main()
66 typedef fusion::result_of::begin<empty_struct<void> >::type b; in main()
67 typedef fusion::result_of::end<empty_struct<void> >::type e; in main()
72 BOOST_MPL_ASSERT((mpl::is_sequence<empty_struct<void> >)); in main()
Ddefine_tpl_struct_empty.cpp19 BOOST_FUSION_DEFINE_TPL_STRUCT((M), BOOST_PP_EMPTY(), empty_struct, )
32 BOOST_MPL_ASSERT_NOT((traits::is_view<empty_struct<void> >)); in main()
33 empty_struct<void> e; in main()
38 BOOST_STATIC_ASSERT(fusion::result_of::size<empty_struct<void> >::value == 0); in main()
39 BOOST_STATIC_ASSERT(fusion::result_of::empty<empty_struct<void> >::value); in main()
44 empty_struct<void> e; in main()
54 empty_struct<void> e; in main()
66 typedef fusion::result_of::begin<empty_struct<void> >::type b; in main()
67 typedef fusion::result_of::end<empty_struct<void> >::type e; in main()
72 BOOST_MPL_ASSERT((mpl::is_sequence<empty_struct<void> >)); in main()
Ddefine_tpl_struct_inline.cpp45 BOOST_FUSION_DEFINE_TPL_STRUCT_INLINE((M), empty_struct, )
58 BOOST_STATIC_ASSERT(boost::fusion::result_of::size<ns::empty_struct<int> >::value == 0); in run_test()
59 BOOST_STATIC_ASSERT(boost::fusion::result_of::empty<ns::empty_struct<int> >::value); in run_test()
Ddefine_struct_inline.cpp43 BOOST_FUSION_DEFINE_STRUCT_INLINE(empty_struct, )
63 BOOST_STATIC_ASSERT(boost::fusion::result_of::size<ns::empty_struct>::value == 0); in run_test()
64 BOOST_STATIC_ASSERT(boost::fusion::result_of::empty<ns::empty_struct>::value); in run_test()
Dadapt_struct_named.cpp74 struct empty_struct {}; struct
75 BOOST_FUSION_ADAPT_STRUCT_NAMED(empty_struct, renamed_empty_struct, )
76 BOOST_FUSION_ADAPT_STRUCT_NAMED_NS(empty_struct, (ns1), renamed_empty_struct1, )
Dadapt_assoc_struct_named.cpp55 struct empty_struct {}; struct
56 BOOST_FUSION_ADAPT_ASSOC_STRUCT_NAMED(empty_struct, renamed_empty_struct,)
Dadapt_assoc_struct.cpp74 struct empty_struct {}; struct
75 BOOST_FUSION_ADAPT_ASSOC_STRUCT(empty_struct,)
Dadapt_struct.cpp157 struct empty_struct {}; struct
158 BOOST_FUSION_ADAPT_STRUCT(empty_struct,)
Ddefine_tpl_struct.cpp30 BOOST_FUSION_DEFINE_TPL_STRUCT((M), BOOST_PP_EMPTY(), empty_struct, )
Ddefine_assoc_tpl_struct.cpp34 BOOST_FUSION_DEFINE_ASSOC_TPL_STRUCT((M), BOOST_PP_EMPTY(), empty_struct, )
/third_party/skia/third_party/externals/abseil-cpp/absl/types/internal/
Doptional.h70 struct empty_struct {}; struct
78 static_assert(sizeof(T) % sizeof(empty_struct) == 0, "");
80 empty_struct data[sizeof(T) / sizeof(empty_struct)];
113 static_assert(sizeof(T) % sizeof(empty_struct) == 0, "");
115 empty_struct data[sizeof(T) / sizeof(empty_struct)];
/third_party/abseil-cpp/absl/types/internal/
Doptional.h70 struct empty_struct {}; struct
78 static_assert(sizeof(T) % sizeof(empty_struct) == 0, "");
80 empty_struct data[sizeof(T) / sizeof(empty_struct)];
113 static_assert(sizeof(T) % sizeof(empty_struct) == 0, "");
115 empty_struct data[sizeof(T) / sizeof(empty_struct)];
/third_party/boost/libs/utility/test/
Dvalue_init_workaround_test.cpp20 struct empty_struct struct
29 struct derived_struct: empty_struct
Dvalue_init_test2.cpp18 struct empty_struct struct
27 struct derived_struct: empty_struct
/third_party/protobuf/python/google/protobuf/internal/
Dwell_known_types_test.py858 empty_struct = struct['empty_struct']
859 self.assertEqual({}, dict(empty_struct.fields))
861 empty_struct = list2[1]
862 self.assertEqual({}, dict(empty_struct.fields))
911 empty_struct = struct['empty_struct']
912 self.assertEqual({}, dict(empty_struct.fields))

12