Home
last modified time | relevance | path

Searched refs:AssignableFrom (Results 1 – 2 of 2) sorted by relevance

/external/libcxx/test/std/utilities/optional/optional.object/optional.object.assign/
Dconst_optional_U.pass.cpp55 struct AssignableFrom { struct
66 AssignableFrom() = default; argument
68 explicit AssignableFrom(T) { ++type_constructed; } in AssignableFrom() argument
69 AssignableFrom& operator=(T) { ++type_assigned; return *this; } in operator =() argument
71 AssignableFrom(int) { ++int_constructed; } in AssignableFrom() argument
72 AssignableFrom& operator=(int) { ++int_assigned; return *this; } in operator =() argument
74 AssignableFrom(AssignableFrom const&) = delete;
75 AssignableFrom& operator=(AssignableFrom const&) = delete;
78 template <class T> int AssignableFrom<T>::type_constructed = 0;
79 template <class T> int AssignableFrom<T>::type_assigned = 0;
[all …]
Doptional_U.pass.cpp60 struct AssignableFrom { struct
71 AssignableFrom() = default; argument
73 explicit AssignableFrom(T) { ++type_constructed; } in AssignableFrom() function
74 AssignableFrom& operator=(T) { ++type_assigned; return *this; } in operator =() argument
76 AssignableFrom(int) { ++int_constructed; } in AssignableFrom() function
77 AssignableFrom& operator=(int) { ++int_assigned; return *this; } in operator =() argument
79 AssignableFrom(AssignableFrom const&) = delete;
80 AssignableFrom& operator=(AssignableFrom const&) = delete;
83 template <class T> int AssignableFrom<T>::type_constructed = 0;
84 template <class T> int AssignableFrom<T>::type_assigned = 0;
[all …]