/external/libcxx/test/libcxx/containers/associative/ |
D | tree_key_value_traits.pass.cpp | 21 typedef std::__tree_key_value_types<Tp> Traits; in testKeyValueTrait() typedef 22 static_assert((std::is_same<Traits::key_type, int>::value), ""); in testKeyValueTrait() 23 static_assert((std::is_same<Traits::__node_value_type, Tp>::value), ""); in testKeyValueTrait() 24 static_assert((std::is_same<Traits::__container_value_type, Tp>::value), ""); in testKeyValueTrait() 25 static_assert(Traits::__is_map == false, ""); in testKeyValueTrait() 29 typedef std::__tree_key_value_types<Tp> Traits; in testKeyValueTrait() typedef 30 static_assert((std::is_same<Traits::key_type, Tp>::value), ""); in testKeyValueTrait() 31 static_assert((std::is_same<Traits::__node_value_type, Tp>::value), ""); in testKeyValueTrait() 32 static_assert((std::is_same<Traits::__container_value_type, Tp>::value), ""); in testKeyValueTrait() 33 static_assert(Traits::__is_map == false, ""); in testKeyValueTrait() [all …]
|
/external/llvm-project/libcxx/test/libcxx/containers/unord/ |
D | key_value_traits.pass.cpp | 20 typedef std::__hash_key_value_types<Tp> Traits; in testKeyValueTrait() typedef 21 static_assert((std::is_same<Traits::key_type, int>::value), ""); in testKeyValueTrait() 22 static_assert((std::is_same<Traits::__node_value_type, Tp>::value), ""); in testKeyValueTrait() 23 static_assert((std::is_same<Traits::__container_value_type, Tp>::value), ""); in testKeyValueTrait() 24 static_assert(Traits::__is_map == false, ""); in testKeyValueTrait() 28 typedef std::__hash_key_value_types<Tp> Traits; in testKeyValueTrait() typedef 29 static_assert((std::is_same<Traits::key_type, Tp>::value), ""); in testKeyValueTrait() 30 static_assert((std::is_same<Traits::__node_value_type, Tp>::value), ""); in testKeyValueTrait() 31 static_assert((std::is_same<Traits::__container_value_type, Tp>::value), ""); in testKeyValueTrait() 32 static_assert(Traits::__is_map == false, ""); in testKeyValueTrait() [all …]
|
/external/libcxx/test/libcxx/containers/unord/ |
D | key_value_traits.pass.cpp | 21 typedef std::__hash_key_value_types<Tp> Traits; in testKeyValueTrait() typedef 22 static_assert((std::is_same<Traits::key_type, int>::value), ""); in testKeyValueTrait() 23 static_assert((std::is_same<Traits::__node_value_type, Tp>::value), ""); in testKeyValueTrait() 24 static_assert((std::is_same<Traits::__container_value_type, Tp>::value), ""); in testKeyValueTrait() 25 static_assert(Traits::__is_map == false, ""); in testKeyValueTrait() 29 typedef std::__hash_key_value_types<Tp> Traits; in testKeyValueTrait() typedef 30 static_assert((std::is_same<Traits::key_type, Tp>::value), ""); in testKeyValueTrait() 31 static_assert((std::is_same<Traits::__node_value_type, Tp>::value), ""); in testKeyValueTrait() 32 static_assert((std::is_same<Traits::__container_value_type, Tp>::value), ""); in testKeyValueTrait() 33 static_assert(Traits::__is_map == false, ""); in testKeyValueTrait() [all …]
|
/external/llvm-project/libcxx/test/libcxx/containers/associative/ |
D | tree_key_value_traits.pass.cpp | 20 typedef std::__tree_key_value_types<Tp> Traits; in testKeyValueTrait() typedef 21 static_assert((std::is_same<Traits::key_type, int>::value), ""); in testKeyValueTrait() 22 static_assert((std::is_same<Traits::__node_value_type, Tp>::value), ""); in testKeyValueTrait() 23 static_assert((std::is_same<Traits::__container_value_type, Tp>::value), ""); in testKeyValueTrait() 24 static_assert(Traits::__is_map == false, ""); in testKeyValueTrait() 28 typedef std::__tree_key_value_types<Tp> Traits; in testKeyValueTrait() typedef 29 static_assert((std::is_same<Traits::key_type, Tp>::value), ""); in testKeyValueTrait() 30 static_assert((std::is_same<Traits::__node_value_type, Tp>::value), ""); in testKeyValueTrait() 31 static_assert((std::is_same<Traits::__container_value_type, Tp>::value), ""); in testKeyValueTrait() 32 static_assert(Traits::__is_map == false, ""); in testKeyValueTrait() [all …]
|
/external/skia/src/gpu/ |
D | GrTTopoSort.h | 15 template <typename T, typename Traits = T> 18 SkASSERT(!Traits::IsTempMarked(graph[i].get())); in GrTTopoSort_CheckAllUnmarked() 19 SkASSERT(!Traits::WasOutput(graph[i].get())); in GrTTopoSort_CheckAllUnmarked() 23 template <typename T, typename Traits = T> 26 SkASSERT(!Traits::IsTempMarked(graph[i].get())); in GrTTopoSort_CleanExit() 27 SkASSERT(Traits::WasOutput(graph[i].get())); in GrTTopoSort_CleanExit() 28 SkASSERT(Traits::GetIndex(graph[i].get()) == (uint32_t) i); in GrTTopoSort_CleanExit() 35 template <typename T, typename Traits = T> 37 if (Traits::IsTempMarked(node)) { in GrTTopoSort_Visit() 46 if (!Traits::WasOutput(node)) { in GrTTopoSort_Visit() [all …]
|
/external/skqp/src/core/ |
D | SkTTopoSort.h | 15 template <typename T, typename Traits = T> 18 SkASSERT(!Traits::IsTempMarked(graph[i].get())); in SkTTopoSort_CheckAllUnmarked() 19 SkASSERT(!Traits::WasOutput(graph[i].get())); in SkTTopoSort_CheckAllUnmarked() 23 template <typename T, typename Traits = T> 26 SkASSERT(!Traits::IsTempMarked(graph[i].get())); in SkTTopoSort_CleanExit() 27 SkASSERT(Traits::WasOutput(graph[i].get())); in SkTTopoSort_CleanExit() 34 template <typename T, typename Traits = T> 36 if (Traits::IsTempMarked(node)) { in SkTTopoSort_Visit() 43 if (!Traits::WasOutput(node)) { in SkTTopoSort_Visit() 46 Traits::SetTempMark(node); in SkTTopoSort_Visit() [all …]
|
/external/libchrome/mojo/public/cpp/bindings/lib/ |
D | serialization_util.h | 34 typename Traits, 36 typename std::enable_if<HasIsNullMethod<Traits>::value>::type* = nullptr> 38 return Traits::IsNull(input); in CallIsNullIfExists() 42 typename Traits, 44 typename std::enable_if<!HasIsNullMethod<Traits>::value>::type* = nullptr> 61 typename Traits, 63 typename std::enable_if<HasSetToNullMethod<Traits>::value>::type* = nullptr> 65 Traits::SetToNull(output); in CallSetToNullIfExists() 69 template <typename Traits, 71 typename std::enable_if<!HasSetToNullMethod<Traits>::value>::type* = [all …]
|
D | map_serialization.h | 24 using Traits = MapTraits<UserType>; variable 26 decltype(Traits::GetBegin(std::declval<MaybeConstUserType&>())); 29 : input_(input), iter_(Traits::GetBegin(input_)) {} in MapReaderBase() 32 size_t GetSize() const { return Traits::GetSize(input_); } in GetSize() 48 using Traits = typename Base::Traits; variable 55 decltype(Traits::GetKey(std::declval<MaybeConstIterator&>())); 57 GetNextResult key = Traits::GetKey(this->iter_); in GetNext() 58 Traits::AdvanceIterator(this->iter_); in GetNext() 68 using Traits = typename Base::Traits; variable 75 decltype(Traits::GetValue(std::declval<MaybeConstIterator&>())); [all …]
|
D | array_serialization.h | 26 template <typename Traits, 29 HasGetBeginMethod<Traits, MaybeConstUserType>::value> 33 template <typename Traits, typename MaybeConstUserType> 34 class ArrayIterator<Traits, MaybeConstUserType, true> { 37 CallGetBeginIfExists<Traits>(std::declval<MaybeConstUserType&>())); 40 : input_(input), iter_(CallGetBeginIfExists<Traits>(input)) {} in ArrayIterator() 43 size_t GetSize() const { return Traits::GetSize(input_); } in GetSize() 46 decltype(Traits::GetValue(std::declval<IteratorType&>())); 48 GetNextResult value = Traits::GetValue(iter_); in GetNext() 49 Traits::AdvanceIterator(iter_); in GetNext() [all …]
|
/external/swiftshader/third_party/subzero/src/ |
D | IceTargetLoweringX8664.cpp | 69 X8664::Traits::Cond::C1, \ 70 X8664::Traits::Cond::C2, \ 72 X8664::Traits::Cond::pred}, 80 #define X(val, C_32, C1_64, C2_64, C3_64) {X8664::Traits::Cond::C_32}, 90 {X8664::Traits::Cond::C1_64, X8664::Traits::Cond::C2_64, \ 91 X8664::Traits::Cond::C3_64}, 115 TargetX86Base<X8664::Traits>::TypeToRegisterSet = {{}}; 119 TargetX86Base<X8664::Traits>::TypeToRegisterSetUnfiltered = {{}}; 123 TargetX86Base<X8664::Traits>::Traits::RegisterSet::Reg_NUM> 124 TargetX86Base<X8664::Traits>::RegisterAliases = {{}}; [all …]
|
D | IceTargetLoweringX86Base.h | 39 template <typename Traits> class BoolFolding; 62 using Traits = TraitsType; 63 using ConcreteTarget = typename Traits::ConcreteTarget; 64 using InstructionSetEnum = typename Traits::InstructionSet; 66 using BrCond = typename Traits::Cond::BrCond; 67 using CmppsCond = typename Traits::Cond::CmppsCond; 69 using X86Address = typename Traits::Address; 70 using X86Operand = typename Traits::X86Operand; 71 using X86OperandMem = typename Traits::X86OperandMem; 72 using SegmentRegisters = typename Traits::X86OperandMem::SegmentRegisters; [all …]
|
D | IceTargetLoweringX8632.cpp | 77 X8632::Traits::Cond::C1, \ 78 X8632::Traits::Cond::C2, \ 80 X8632::Traits::Cond::pred}, 88 #define X(val, C_32, C1_64, C2_64, C3_64) {X8632::Traits::Cond::C_32}, 98 {X8632::Traits::Cond::C1_64, X8632::Traits::Cond::C2_64, \ 99 X8632::Traits::Cond::C3_64}, 128 TargetX86Base<X8632::Traits>::TypeToRegisterSet = {{}}; 132 TargetX86Base<X8632::Traits>::TypeToRegisterSetUnfiltered = {{}}; 136 TargetX86Base<X8632::Traits>::Traits::RegisterSet::Reg_NUM> 137 TargetX86Base<X8632::Traits>::RegisterAliases = {{}}; [all …]
|
D | IceMemory.h | 54 template <typename T, typename Traits> struct sz_allocator { 67 sz_allocator(const sz_allocator<U, Traits> &) : Current() {} in sz_allocator() 87 template <class U> struct rebind { typedef sz_allocator<U, Traits> other; }; 94 typename Traits::allocator_type current() { in current() 95 if (!Traits::cache_allocator) { in current() 97 return Traits::current(); in current() 100 Current = Traits::current(); in current() 102 assert(Current == Traits::current()); in current() 105 static void init() { Traits::init(); } in init() 107 typename Traits::allocator_type Current; [all …]
|
/external/angle/src/tests/gl_tests/ |
D | VulkanExternalImageTest.cpp | 210 template <typename Traits> 213 template <typename Traits> 217 template <typename Traits> 223 ASSERT(EnsureGLExtensionEnabled(Traits::MemoryObjectExtension())); in RunShouldImportMemoryTest() 229 ANGLE_SKIP_TEST_IF(!Traits::CanCreateImage(helper, format, VK_IMAGE_TYPE_2D, in RunShouldImportMemoryTest() 237 VkResult result = Traits::CreateImage2D(&helper, format, createFlags, usageFlags, extent, in RunShouldImportMemoryTest() 241 typename Traits::Handle memoryHandle = Traits::InvalidHandle(); in RunShouldImportMemoryTest() 242 result = Traits::ExportMemory(&helper, deviceMemory, &memoryHandle); in RunShouldImportMemoryTest() 244 EXPECT_NE(memoryHandle, Traits::InvalidHandle()); in RunShouldImportMemoryTest() 251 Traits::ImportMemory(memoryObject, deviceMemorySize, memoryHandle); in RunShouldImportMemoryTest() [all …]
|
/external/antlr/runtime/Cpp/tests/ |
D | UserTestTraits.hpp | 47 typedef antlr3::Traits<S1Lexer, S1Parser, UserTraits> S1LexerTraits; 48 typedef antlr3::Traits<S1Lexer, S1Parser, UserTraits> S1ParserTraits; 50 typedef antlr3::Traits<t001lexer, NoParser, UserTraits> t001lexerTraits; 51 typedef antlr3::Traits<t002lexer, NoParser, UserTraits> t002lexerTraits; 52 typedef antlr3::Traits<t003lexer, NoParser, UserTraits> t003lexerTraits; 53 typedef antlr3::Traits<t004lexer, NoParser, UserTraits> t004lexerTraits; 54 typedef antlr3::Traits<t005lexer, NoParser, UserTraits> t005lexerTraits; 55 typedef antlr3::Traits<t006lexer, NoParser, UserTraits> t006lexerTraits; 56 typedef antlr3::Traits<t007lexer, NoParser, UserTraits> t007lexerTraits; 57 typedef antlr3::Traits<t008lexer, NoParser, UserTraits> t008lexerTraits; [all …]
|
/external/llvm-project/llvm/unittests/DebugInfo/PDB/ |
D | HashTableTest.cpp | 50 IdentityHashTraits Traits; in TEST() local 51 Table.set_as(3u, 7, Traits); in TEST() 53 ASSERT_NE(Table.end(), Table.find_as(3u, Traits)); in TEST() 54 EXPECT_EQ(7u, Table.get(3u, Traits)); in TEST() 68 IdentityHashTraits Traits; in TEST() local 69 Table.set_as(N1, 7, Traits); in TEST() 70 Table.set_as(N2, 12, Traits); in TEST() 72 ASSERT_NE(Table.end(), Table.find_as(N1, Traits)); in TEST() 73 ASSERT_NE(Table.end(), Table.find_as(N2, Traits)); in TEST() 75 EXPECT_EQ(7u, Table.get(N1, Traits)); in TEST() [all …]
|
/external/mesa3d/src/gallium/drivers/swr/rasterizer/common/ |
D | simdlib.hpp | 68 struct Traits : SIMDImpl::Traits struct 124 struct Traits : SIMDImpl::Traits struct 179 struct Traits : SIMDImpl::Traits struct 200 template <typename Traits> 201 struct SIMDBase : Traits::IsaImpl 203 using CompareType = typename Traits::CompareType; 204 using ScaleFactor = typename Traits::ScaleFactor; 205 using RoundMode = typename Traits::RoundMode; 206 using SIMD = typename Traits::IsaImpl; 207 using Float = typename Traits::Float; [all …]
|
/external/llvm-project/libcxx/test/std/input.output/iostream.format/quoted.manip/ |
D | quoted.pass.cpp | 22 template <class CharT, class Traits> 23 bool is_skipws ( const std::basic_istream<CharT, Traits>& is ) { in is_skipws() 27 template <class CharT, class Traits = std::char_traits<CharT>> 29 std::basic_string<CharT, Traits> str(p); in both_ways() 32 std::basic_stringstream<CharT, Traits> ss; in both_ways() 39 template <class CharT, class Traits = std::char_traits<CharT>> 41 std::basic_stringstream<CharT, Traits> ss; in round_trip() 45 std::basic_string<CharT, Traits> s; in round_trip() 52 template <class CharT, class Traits = std::char_traits<CharT>> 54 std::basic_stringstream<CharT, Traits> ss; in round_trip_ws() [all …]
|
/external/libcxx/test/std/input.output/iostream.format/quoted.manip/ |
D | quoted.pass.cpp | 23 template <class CharT, class Traits> 24 bool is_skipws ( const std::basic_istream<CharT, Traits>& is ) { in is_skipws() 28 template <class CharT, class Traits = std::char_traits<CharT>> 30 std::basic_string<CharT, Traits> str(p); in both_ways() 33 std::basic_stringstream<CharT, Traits> ss; in both_ways() 40 template <class CharT, class Traits = std::char_traits<CharT>> 42 std::basic_stringstream<CharT, Traits> ss; in round_trip() 46 std::basic_string<CharT, Traits> s; in round_trip() 53 template <class CharT, class Traits = std::char_traits<CharT>> 55 std::basic_stringstream<CharT, Traits> ss; in round_trip_ws() [all …]
|
/external/libchrome/base/ |
D | scoped_generic.h | 54 template<typename T, typename Traits> 63 struct Data : public Traits { 65 Data(const T& in, const Traits& other) : Traits(other), generic(in) {} in Data() 71 typedef Traits traits_type; 85 ScopedGeneric(ScopedGeneric<T, Traits>&& rvalue) in ScopedGeneric() 94 ScopedGeneric& operator=(ScopedGeneric<T, Traits>&& rvalue) { 114 swap(static_cast<Traits&>(data_), static_cast<Traits&>(other.data_)); in swap() 147 Traits& get_traits() { return data_; } in get_traits() 148 const Traits& get_traits() const { return data_; } in get_traits() 171 template<class T, class Traits> [all …]
|
/external/llvm-project/llvm/include/llvm/ADT/ |
D | Waymarking.h | 203 using Traits = WTraits; 209 using Traits = WTraits; 215 Traits::TAG_MASK; 231 size_t Count = Marker::Traits::Tags::Remain; 232 if (Offset <= Marker::Traits::NUM_STATIC_TAGS) { 234 while (Offset != Marker::Traits::NUM_STATIC_TAGS) { 235 Marker::setWaymark(*Begin, Marker::Traits::Tags::Values[Offset]); 248 size_t Off = Marker::Traits::NUM_STATIC_TAGS; 252 unsigned Tag = Count & Marker::Traits::MARK_MASK; 255 if (Count <= Marker::Traits::MARK_MASK) { [all …]
|
D | IntervalMap.h | 562 template <typename KeyT, typename ValT, unsigned N, typename Traits> 581 assert((i == 0 || Traits::stopLess(stop(i - 1), x)) && in findFrom() 583 while (i != Size && Traits::stopLess(stop(i), x)) ++i; in findFrom() 596 assert((i == 0 || Traits::stopLess(stop(i - 1), x)) && in safeFind() 598 while (Traits::stopLess(stop(i), x)) ++i; in safeFind() 610 return Traits::startLess(x, start(i)) ? NotFound : value(i); in safeLookup() 625 template <typename KeyT, typename ValT, unsigned N, typename Traits> 626 unsigned LeafNode<KeyT, ValT, N, Traits>:: 630 assert(!Traits::stopLess(b, a) && "Invalid interval"); in insertFrom() 633 assert((i == 0 || Traits::stopLess(stop(i - 1), a))); in insertFrom() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ADT/ |
D | IntervalMap.h | 562 template <typename KeyT, typename ValT, unsigned N, typename Traits> 581 assert((i == 0 || Traits::stopLess(stop(i - 1), x)) && in findFrom() 583 while (i != Size && Traits::stopLess(stop(i), x)) ++i; in findFrom() 596 assert((i == 0 || Traits::stopLess(stop(i - 1), x)) && in safeFind() 598 while (Traits::stopLess(stop(i), x)) ++i; in safeFind() 610 return Traits::startLess(x, start(i)) ? NotFound : value(i); in safeLookup() 625 template <typename KeyT, typename ValT, unsigned N, typename Traits> 626 unsigned LeafNode<KeyT, ValT, N, Traits>:: 630 assert(!Traits::stopLess(b, a) && "Invalid interval"); in insertFrom() 633 assert((i == 0 || Traits::stopLess(stop(i - 1), a))); in insertFrom() [all …]
|
/external/openscreen/platform/impl/ |
D | scoped_pipe.h | 28 template <typename Traits> 31 using PipeType = typename Traits::PipeType; 33 ScopedPipe() : pipe_(Traits::kInvalidValue) {} in ScopedPipe() 38 if (pipe_ != Traits::kInvalidValue) in ~ScopedPipe() 39 Traits::Close(release()); in ~ScopedPipe() 43 if (pipe_ != Traits::kInvalidValue) 44 Traits::Close(release()); 52 pipe_ = Traits::kInvalidValue; in release() 61 explicit operator bool() const { return pipe_ != Traits::kInvalidValue; }
|
/external/llvm/include/llvm/ADT/ |
D | IntervalMap.h | 559 template <typename KeyT, typename ValT, unsigned N, typename Traits> 578 assert((i == 0 || Traits::stopLess(stop(i - 1), x)) && in findFrom() 580 while (i != Size && Traits::stopLess(stop(i), x)) ++i; in findFrom() 593 assert((i == 0 || Traits::stopLess(stop(i - 1), x)) && in safeFind() 595 while (Traits::stopLess(stop(i), x)) ++i; in safeFind() 607 return Traits::startLess(x, start(i)) ? NotFound : value(i); in safeLookup() 622 template <typename KeyT, typename ValT, unsigned N, typename Traits> 623 unsigned LeafNode<KeyT, ValT, N, Traits>:: 627 assert(!Traits::stopLess(b, a) && "Invalid interval"); in insertFrom() 630 assert((i == 0 || Traits::stopLess(stop(i - 1), a))); in insertFrom() [all …]
|