Home
last modified time | relevance | path

Searched refs:is_const (Results 1 – 25 of 29) sorted by relevance

12

/external/libcxx/test/std/utilities/meta/meta.unary/meta.unary.prop/
Dis_const.pass.cpp20 static_assert(!std::is_const<T>::value, ""); in test_is_const()
21 static_assert( std::is_const<const T>::value, ""); in test_is_const()
22 static_assert(!std::is_const<volatile T>::value, ""); in test_is_const()
23 static_assert( std::is_const<const volatile T>::value, ""); in test_is_const()
46 static_assert(!std::is_const<int&>::value, ""); in main()
47 static_assert(!std::is_const<const int&>::value, ""); in main()
/external/libcxx/test/std/utilities/utility/as_const/
Das_const.pass.cpp25 …static_assert(std::is_const<typename std::remove_reference<decltype(std::as_const … in test()
26 …static_assert(std::is_const<typename std::remove_reference<decltype(std::as_const< T… in test()
27 …static_assert(std::is_const<typename std::remove_reference<decltype(std::as_const<const T… in test()
28 …static_assert(std::is_const<typename std::remove_reference<decltype(std::as_const<volatile T… in test()
29 …static_assert(std::is_const<typename std::remove_reference<decltype(std::as_const<const volatile T… in test()
/external/clang/test/SemaTemplate/
Dtemp_class_spec.cpp35 struct is_const { struct
40 struct is_const<const T> { argument
44 int is_const0[is_const<int>::value? -1 : 1]; argument
45 int is_const1[is_const<const int>::value? 1 : -1];
46 int is_const2[is_const<const volatile int>::value? 1 : -1];
47 int is_const3[is_const<const int [3]>::value? 1 : -1];
48 int is_const4[is_const<const volatile int[3]>::value? 1 : -1];
49 int is_const5[is_const<volatile int[3]>::value? -1 : 1];
/external/mesa3d/src/glsl/
Dloop_analysis.h202 const bool is_const = (this->num_assignments == 0) in is_loop_constant() local
216 assert(!this->var->read_only || (this->var->read_only && is_const)); in is_loop_constant()
218 return is_const; in is_loop_constant()
/external/llvm/unittests/Support/
DThreadLocalTest.cpp30 std::is_const<std::remove_pointer<decltype(x.get())>::type>::value, in TEST_F()
45 !std::is_const<std::remove_pointer<decltype(y.get())>::type>::value, in TEST_F()
/external/llvm/test/CodeGen/NVPTX/
Disspacep.ll8 ; CHECK: is_const
9 define i1 @is_const(i8* %addr) {
/external/clang/test/Analysis/Inputs/
Dsystem-header-simulator-cxx.h137 template <class _Tp> struct is_const : public false_type {};
138 template <class _Tp> struct is_const<_Tp const> : public true_type {};
146 template <class _Tp, bool = is_const<_Tp>::value || is_reference<_Tp>::value >
/external/parameter-framework/asio-1.10.6/include/asio/detail/
Dtype_traits.hpp23 using std::is_const;
/external/libpcap/
Doptimize.c520 int is_const; member
556 vmap[val].is_const = 1; in F()
804 if (vmap[val].is_const) { in opt_peep()
875 if (vmap[val].is_const && BPF_SRC(b->s.code) == BPF_X) { in opt_peep()
885 if (vmap[val].is_const && BPF_SRC(b->s.code) == BPF_K) { in opt_peep()
942 if (alter && vmap[v].is_const) { in opt_stmt()
974 if (alter && vmap[val[A_ATOM]].is_const) { in opt_stmt()
1011 if (vmap[val[A_ATOM]].is_const) { in opt_stmt()
1031 if (alter && vmap[val[X_ATOM]].is_const) { in opt_stmt()
1032 if (vmap[val[A_ATOM]].is_const) { in opt_stmt()
[all …]
/external/eigen/unsupported/Eigen/CXX11/src/Tensor/
DTensorTraits.h57 … Flags = compute_tensor_flags<Scalar_, Options_>::ret | (is_const<Scalar_>::value ? 0 : LvalueBit)
75 Flags = compute_tensor_flags<Scalar_, Options_>::ret | (is_const<Scalar_>::value ? 0: LvalueBit)
/external/v8/tools/clang/rewrite_to_chrome_style/
DRewriteToChromeStyle.cpp414 bool is_const = IsProbablyConst(decl, context); in GetNameForDecl() local
415 if (is_const) { in GetNameForDecl()
437 if (!is_const && decl.isStaticDataMember()) { in GetNameForDecl()
/external/skia/include/private/
DSkTLogic.h77 using type = skstd::conditional_t<std::is_const<S>::value, skstd::add_const_t<D>, D>;
/external/eigen/Eigen/src/Core/util/
DMeta.h115 template <typename T> struct is_const { enum { value = 0 }; };
116 template <typename T> struct is_const<T const> { enum { value = 1 }; };
DXprHelper.h416 bool(internal::is_const<T1>::value),
641 enum { value = (!bool(is_const<ExpressionType>::value)) &&
/external/clang/test/Misc/
Ddiag-template-diffing.cpp1247 struct is_const {
1251 using T = condition<(is_const())>;
/external/libcxx/test/std/experimental/utilities/meta/meta.type.synop/
Dmeta.unary.prop.pass.cpp43 static_assert(ex::is_const_v<T> == std::is_const<T>::value, ""); in type_properties_test()
48 static_assert(ex::is_const_v<T> == std::is_const<T>::value, ""); in type_properties_test()
/external/libcxx/include/
D__tuple41 typename enable_if<!is_const<_Tp>::value>::type,
338 is_const<_RawTp>::value,
Dtype_traits60 template <class T> struct is_const;
268 = is_const<T>::value; // C++17
605 // is_const
607 template <class _Tp> struct _LIBCPP_TEMPLATE_VIS is_const : public false_type {};
608 template <class _Tp> struct _LIBCPP_TEMPLATE_VIS is_const<_Tp const> : public true_type {};
612 = is_const<_Tp>::value;
1024 is_const<_Tp>::value >
1420 && (!is_const<typename remove_reference<_T2>::type>::value
1833 template <class _Tp, class _Up, bool = is_const<typename remove_reference<_Tp>::type>::value,
D__hash_table154 static_assert(!is_reference<_Tp>::value && !is_const<_Tp>::value, "");
269 static_assert(!is_const<__node_type>::value,
405 static_assert(!is_const<typename pointer_traits<_NodePtr>::element_type>::value, "");
/external/libcxx/include/experimental/
Dtype_traits72 = is_const<T>::value;
304 = is_const<_Tp>::value;
/external/Microsoft-GSL/gsl/
Dspan403 std::is_const<element_type>::value && !details::is_span<Container>::value &&
621 class = std::enable_if_t<!std::is_const<ElementType>::value>>
/external/libcxx/test/support/
Dmin_allocator.h172 !std::is_const<T>::value
/external/compiler-rt/lib/sanitizer_common/scripts/
Dcpplint.py3384 is_const = True
3408 is_const = False
3410 if not is_const:
/external/libvpx/libvpx/tools/
Dcpplint.py3961 is_const = True
3985 is_const = False
3987 if not is_const:
/external/parameter-framework/asio-1.10.6/include/asio/
Dbuffer.hpp754 : public buffer_types_base<is_const<PodType>::value>

12