Home
last modified time | relevance | path

Searched refs:alignment_of (Results 1 – 25 of 127) sorted by relevance

123456

/third_party/boost/libs/type_traits/test/
Dalignment_of_test.cpp79 TT_TEST_BEGIN(alignment_of)
83 BOOST_CHECK_INTEGRAL_CONSTANT(::tt::alignment_of<void>::value, 0);
85 BOOST_CHECK_INTEGRAL_CONSTANT(::tt::alignment_of<char>::value, ALIGNOF(char));
86 BOOST_CHECK_INTEGRAL_CONSTANT(::tt::alignment_of<short>::value, ALIGNOF(short));
87 BOOST_CHECK_INTEGRAL_CONSTANT(::tt::alignment_of<int>::value, ALIGNOF(int));
88 BOOST_CHECK_INTEGRAL_CONSTANT(::tt::alignment_of<long>::value, ALIGNOF(long));
89 BOOST_CHECK_INTEGRAL_CONSTANT(::tt::alignment_of<float>::value, ALIGNOF(float));
90 BOOST_CHECK_INTEGRAL_CONSTANT(::tt::alignment_of<double>::value, ALIGNOF(double));
91 BOOST_CHECK_INTEGRAL_CONSTANT(::tt::alignment_of<long double>::value, ALIGNOF(long double));
93 BOOST_CHECK_INTEGRAL_CONSTANT(::tt::alignment_of< ::boost::long_long_type>::value, ALIGNOF(::boost:…
[all …]
Dalignment_of_a2_test.cpp84 TT_TEST_BEGIN(alignment_of)
88 BOOST_CHECK_INTEGRAL_CONSTANT(::tt::alignment_of<void>::value, 0);
90 BOOST_CHECK_INTEGRAL_CONSTANT(::tt::alignment_of<char>::value, ALIGNOF(char));
91 BOOST_CHECK_INTEGRAL_CONSTANT(::tt::alignment_of<short>::value, ALIGNOF(short));
92 BOOST_CHECK_INTEGRAL_CONSTANT(::tt::alignment_of<int>::value, ALIGNOF(int));
93 BOOST_CHECK_INTEGRAL_CONSTANT(::tt::alignment_of<long>::value, ALIGNOF(long));
94 BOOST_CHECK_INTEGRAL_CONSTANT(::tt::alignment_of<float>::value, ALIGNOF(float));
95 BOOST_CHECK_INTEGRAL_CONSTANT(::tt::alignment_of<double>::value, ALIGNOF(double));
96 BOOST_CHECK_INTEGRAL_CONSTANT(::tt::alignment_of<long double>::value, ALIGNOF(long double));
98 BOOST_CHECK_INTEGRAL_CONSTANT(::tt::alignment_of< ::boost::long_long_type>::value, ALIGNOF(::boost:…
[all …]
Daligned_storage_a2_test.cpp50 BOOST_CHECK(::tt::alignment_of<t1>::value == T::value); in do_check()
65 BOOST_CHECK(::tt::alignment_of<t2>::value == T::value); in do_check()
83 …BOOST_CHECK(::tt::alignment_of<t3>::value == ::tt::alignment_of< ::boost::detail::max_align>::valu… in do_check()
93 do_check(tt::integral_constant<std::size_t,::tt::alignment_of<char>::value>());
94 do_check(tt::integral_constant<std::size_t,::tt::alignment_of<short>::value>());
95 do_check(tt::integral_constant<std::size_t,::tt::alignment_of<int>::value>());
96 do_check(tt::integral_constant<std::size_t,::tt::alignment_of<long>::value>());
97 do_check(tt::integral_constant<std::size_t,::tt::alignment_of<float>::value>());
98 do_check(tt::integral_constant<std::size_t,::tt::alignment_of<double>::value>());
99 do_check(tt::integral_constant<std::size_t,::tt::alignment_of<long double>::value>());
[all …]
Daligned_storage_test.cpp43 BOOST_CHECK(::tt::alignment_of<t1>::value == T::value); in do_check()
54 BOOST_CHECK(::tt::alignment_of<t2>::value == T::value); in do_check()
68 …BOOST_CHECK(::tt::alignment_of<t3>::value == ::tt::alignment_of< ::boost::detail::max_align>::valu… in do_check()
81 do_check(tt::integral_constant<std::size_t,::tt::alignment_of<char>::value>());
82 do_check(tt::integral_constant<std::size_t,::tt::alignment_of<short>::value>());
83 do_check(tt::integral_constant<std::size_t,::tt::alignment_of<int>::value>());
84 do_check(tt::integral_constant<std::size_t,::tt::alignment_of<long>::value>());
85 do_check(tt::integral_constant<std::size_t,::tt::alignment_of<float>::value>());
86 do_check(tt::integral_constant<std::size_t,::tt::alignment_of<double>::value>());
87 do_check(tt::integral_constant<std::size_t,::tt::alignment_of<long double>::value>());
[all …]
Dtype_with_alignment_test.cpp43 std::cout << "Alignment of T is " << ::tt::alignment_of< T >::value << std::endl;\
44 std::cout << "Aligned type is " << typeid(::tt::type_with_alignment< ::tt::alignment_of< T >::value…
45 std::cout << "Alignment of aligned type is " << ::tt::alignment_of<\
47 ::tt::alignment_of< T >::value\
50 BOOST_CHECK(::tt::alignment_of<\
52 ::tt::alignment_of< T >::value\
54 >::value == ::boost::alignment_of< T >::value);\
57 ::tt::alignment_of< T >::value>::type\
64 ::tt::alignment_of< T >::value\
Dtricky_partial_spec_test.cpp58 BOOST_CHECK_INTEGRAL_CONSTANT(::tt::alignment_of<char&>::value, ALIGNOF(void*));
59 BOOST_CHECK_INTEGRAL_CONSTANT(::tt::alignment_of<char (&)(int)>::value, ALIGNOF(void*));
60 BOOST_CHECK_INTEGRAL_CONSTANT(::tt::alignment_of<char(&)[4]>::value, ALIGNOF(void*));
/third_party/boost/boost/type_traits/
Dalignment_of.hpp28 template <typename T> struct alignment_of;
88 template <class T> struct alignment_of : public integral_constant<std::size_t, ::boost::detail::ali… struct
92 template <typename T> struct alignment_of<T&> : public alignment_of<T*>{}; struct
98 template<> struct alignment_of<long double> : public alignment_of<long_double_wrapper>{}; struct
102 template<> struct alignment_of<void> : integral_constant<std::size_t, 0>{}; struct
104 template<> struct alignment_of<void const> : integral_constant<std::size_t, 0>{}; struct
105 template<> struct alignment_of<void const volatile> : integral_constant<std::size_t, 0>{}; struct
106 template<> struct alignment_of<void volatile> : integral_constant<std::size_t, 0>{}; struct
Dtype_with_alignment.hpp55 …Target, false>{ typedef typename long_double_alignment<Target, boost::alignment_of<long double>::v…
59 …ment<Target, false>{ typedef typename double_alignment<Target, boost::alignment_of<double>::value …
64 …t<Target, false>{ typedef typename long_long_alignment<Target, boost::alignment_of<boost::long_lon…
66 …ment<Target, false>{ typedef typename double_alignment<Target, boost::alignment_of<double>::value …
70 …gnment<Target, false>{ typedef typename long_alignment<Target, boost::alignment_of<long>::value >=…
73 …ignment<Target, false>{ typedef typename int_alignment<Target, boost::alignment_of<int>::value >= …
76 …nment<Target, false>{ typedef typename short_alignment<Target, boost::alignment_of<short>::value >…
83 …typedef typename boost::detail::char_alignment<Align, boost::alignment_of<char>::value >= Align>::…
159 ::boost::alignment_of<boost::detail::max_align>::value < 8,
168 ::boost::alignment_of<boost::detail::max_align>::value < 16,
[all …]
/third_party/boost/libs/type_traits/doc/
Dalignment_of.qbk8 [section:alignment_of alignment_of]
10 struct alignment_of : public __integral_constant<std::size_t, ALIGNOF(T)> {};
12 __inherit Class template `alignment_of` inherits from
20 __header ` #include <boost/type_traits/alignment_of.hpp>` or ` #include <boost/type_traits.hpp>`
24 [:`alignment_of<int>` inherits from `__integral_constant<std::size_t, ALIGNOF(int)>`.]
26 [:`alignment_of<char>::type` is the type `__integral_constant<std::size_t, ALIGNOF(char)>`.]
28 [:`alignment_of<double>::value` is an integral constant
31 [:`alignment_of<T>::value_type` is the type `std::size_t`.]
39 assert(boost::alignment_of<align_t>::value % 8 == 0);
47 In this code, even though `boost::alignment_of<align_t>` reports that `align_t` has 8-byte
[all …]
/third_party/boost/libs/smart_ptr/test/
Dmake_shared_array_noinit_test.cpp52 boost::alignment_of<int>::value)); in main()
60 boost::alignment_of<int>::value)); in main()
68 boost::alignment_of<int>::value)); in main()
76 boost::alignment_of<int>::value)); in main()
84 boost::alignment_of<int>::value)); in main()
92 boost::alignment_of<int>::value)); in main()
100 boost::alignment_of<int>::value)); in main()
108 boost::alignment_of<int>::value)); in main()
116 boost::alignment_of<type>::value)); in main()
128 boost::alignment_of<type>::value)); in main()
[all …]
Dmake_local_shared_array_test.cpp55 boost::alignment_of<int>::value)); in main()
66 boost::alignment_of<int>::value)); in main()
77 boost::alignment_of<int>::value)); in main()
89 boost::alignment_of<int>::value)); in main()
101 boost::alignment_of<int>::value)); in main()
112 boost::alignment_of<int>::value)); in main()
123 boost::alignment_of<int>::value)); in main()
135 boost::alignment_of<int>::value)); in main()
147 boost::alignment_of<type>::value)); in main()
159 boost::alignment_of<type>::value)); in main()
[all …]
Dmake_local_shared_array_noinit_test.cpp55 boost::alignment_of<int>::value)); in main()
63 boost::alignment_of<int>::value)); in main()
71 boost::alignment_of<int>::value)); in main()
79 boost::alignment_of<int>::value)); in main()
87 boost::alignment_of<int>::value)); in main()
95 boost::alignment_of<int>::value)); in main()
103 boost::alignment_of<int>::value)); in main()
111 boost::alignment_of<int>::value)); in main()
119 boost::alignment_of<type>::value)); in main()
131 boost::alignment_of<type>::value)); in main()
[all …]
Dmake_shared_array_test.cpp52 boost::alignment_of<int>::value)); in main()
63 boost::alignment_of<int>::value)); in main()
74 boost::alignment_of<int>::value)); in main()
86 boost::alignment_of<int>::value)); in main()
98 boost::alignment_of<int>::value)); in main()
109 boost::alignment_of<int>::value)); in main()
120 boost::alignment_of<int>::value)); in main()
132 boost::alignment_of<int>::value)); in main()
144 boost::alignment_of<type>::value)); in main()
156 boost::alignment_of<type>::value)); in main()
[all …]
Dallocate_shared_array_noinit_test.cpp89 boost::alignment_of<int>::value)); in main()
97 boost::alignment_of<int>::value)); in main()
105 boost::alignment_of<int>::value)); in main()
113 boost::alignment_of<int>::value)); in main()
121 boost::alignment_of<int>::value)); in main()
129 boost::alignment_of<int>::value)); in main()
137 boost::alignment_of<int>::value)); in main()
145 boost::alignment_of<int>::value)); in main()
153 boost::alignment_of<type>::value)); in main()
165 boost::alignment_of<type>::value)); in main()
[all …]
Dallocate_local_shared_array_noinit_test.cpp92 boost::alignment_of<int>::value)); in main()
100 boost::alignment_of<int>::value)); in main()
108 boost::alignment_of<int>::value)); in main()
116 boost::alignment_of<int>::value)); in main()
124 boost::alignment_of<int>::value)); in main()
132 boost::alignment_of<int>::value)); in main()
140 boost::alignment_of<int>::value)); in main()
148 boost::alignment_of<int>::value)); in main()
156 boost::alignment_of<type>::value)); in main()
168 boost::alignment_of<type>::value)); in main()
[all …]
Dallocate_local_shared_array_test.cpp92 boost::alignment_of<int>::value)); in main()
103 boost::alignment_of<int>::value)); in main()
114 boost::alignment_of<int>::value)); in main()
126 boost::alignment_of<int>::value)); in main()
138 boost::alignment_of<int>::value)); in main()
149 boost::alignment_of<int>::value)); in main()
160 boost::alignment_of<int>::value)); in main()
172 boost::alignment_of<int>::value)); in main()
184 boost::alignment_of<type>::value)); in main()
196 boost::alignment_of<type>::value)); in main()
[all …]
Dallocate_shared_array_test.cpp89 boost::alignment_of<int>::value)); in main()
100 boost::alignment_of<int>::value)); in main()
111 boost::alignment_of<int>::value)); in main()
123 boost::alignment_of<int>::value)); in main()
135 boost::alignment_of<int>::value)); in main()
146 boost::alignment_of<int>::value)); in main()
157 boost::alignment_of<int>::value)); in main()
169 boost::alignment_of<int>::value)); in main()
181 boost::alignment_of<type>::value)); in main()
193 boost::alignment_of<type>::value)); in main()
[all …]
/third_party/boost/boost/atomic/detail/
Dstorage_traits.hpp94 …static BOOST_CONSTEXPR_OR_CONST std::size_t native_alignment = atomics::detail::alignment_of< boos…
103 …static BOOST_CONSTEXPR_OR_CONST std::size_t native_alignment = atomics::detail::alignment_of< boos…
112 …static BOOST_CONSTEXPR_OR_CONST std::size_t native_alignment = atomics::detail::alignment_of< boos…
123 …static BOOST_CONSTEXPR_OR_CONST std::size_t native_alignment = atomics::detail::alignment_of< boos…
166 …typedef buffer_storage< 16u, atomics::detail::alignment_of< atomics::detail::max_align_t >::value …
168 …static BOOST_CONSTEXPR_OR_CONST std::size_t native_alignment = atomics::detail::alignment_of< atom…
/third_party/boost/boost/align/
Dalignment_of.hpp42 struct alignment_of struct
43 : detail::alignment_of<typename
48 constexpr std::size_t alignment_of_v = alignment_of<T>::value;
/third_party/boost/boost/flyweight/
Dkey_value.hpp160 (boost::alignment_of<key_type>::value >
161 boost::alignment_of<value_type>::value)?
162 boost::alignment_of<key_type>::value:
163 boost::alignment_of<value_type>::value
264 boost::alignment_of<value_type>::value
/third_party/boost/libs/type_index/test/
Dtype_index_test_ctti_alignment.cpp13 …boost::alignment_of<boost::typeindex::detail::ctti_data>::value == boost::alignment_of<char>::valu… in main()
/third_party/boost/boost/align/detail/
Dmax_align.hpp20 : max_size<alignment_of<A>::value, alignment_of<B>::value> { };
/third_party/boost/boost/atomic/detail/type_traits/
Dalignment_of.hpp42 using std::alignment_of;
44 using boost::alignment_of;
/third_party/boost/boost/interprocess/detail/
Dsegment_manager_helper.hpp120 , size_type(::boost::container::dtl::alignment_of<block_header<size_type> >::value)) in total_size_with_header()
172 …{ return block_header_from_value(value, sizeof(T), ::boost::container::dtl::alignment_of<T>::valu… in block_header_from_value()
193 … , size_type(::boost::container::dtl::alignment_of<block_header<size_type> >::value))); in from_first_header()
204 … , size_type(::boost::container::dtl::alignment_of<block_header<size_type> >::value))); in to_first_header()
278 …enum { BlockHdrAlignment = ::boost::container::dtl::alignment_of<block_header<size_type> >::valu…
/third_party/boost/libs/container/test/
Dstatic_vector_options_test.cpp38 BOOST_STATIC_ASSERT(extended_alignment > dtl::alignment_of<int>::value); in test_alignment()
59 BOOST_ASSERT((reinterpret_cast<std::size_t>(&v[0]) % dtl::alignment_of<int>::value) == 0); in test_alignment()

123456