Lines Matching defs:std

57 using decay_t = typename std::decay<T>::type;
60 using enable_if_t = typename std::enable_if<B, T>::type;
63 using conditional_t = typename std::conditional<B, T, F>::type;
66 using remove_cv_t = typename std::remove_cv<T>::type;
69 using remove_reference_t = typename std::remove_reference<T>::type;
71 using std::decay_t;
72 using std::enable_if_t;
73 using std::conditional_t;
74 using std::remove_cv_t;
75 using std::remove_reference_t;
83 alignof(T) <= alignof(max_align_t) && std::is_trivially_copyable<T>::value && sizeof(T) <= STACK_STORAGE_SIZE;
88 static constexpr bool value = alignof(T) <= alignof(max_align_t) && std::is_nothrow_move_constructible<T>::value &&
94 static constexpr bool value = std::is_reference<T>::value || std::is_copy_constructible<T>::value;
121 class BadAnyCast : public std::bad_cast {
130 inline typename std::enable_if<std::is_enum<T>::value, bool>::type MakeAnyFromParcel(Any& value, MessageParcel& parcel);
132 inline typename std::enable_if<!std::is_enum<T>::value, bool>::type MakeAnyFromParcel(Any& value, MessageParcel& parcel)
140 inline typename std::enable_if<std::is_enum<T>::value, bool>::type WriteValueToParcel(const T &value,
147 inline typename std::enable_if<!std::is_enum<T>::value, bool>::type WriteValueToParcel(const T &value,
156 inline typename std::enable_if<std::is_enum<T>::value, bool>::type WriteValueToParcelInt64(const T &value,
163 inline typename std::enable_if<!std::is_enum<T>::value, bool>::type WriteValueToParcelInt64(const T &value,
204 template <typename ValueType, enable_if_t<!std::is_same<decay_t<ValueType>, Any>::value &&
205 std::is_copy_constructible<decay_t<ValueType>>::value,
209 DoEmplace<decay_t<ValueType>>(std::forward<ValueType>(value));
221 MoveFrom(std::forward<Any>(other));
233 template <typename ValueType, enable_if_t<!std::is_same<decay_t<ValueType>, Any>::value &&
234 std::is_copy_constructible<decay_t<ValueType>>::value,
238 *this = Any(std::forward<ValueType>(value));
247 static constexpr std::string_view GetTypeName() noexcept
277 enable_if_t<std::is_constructible<decay_t<ValueType>, Args...>::value &&
278 std::is_copy_constructible<decay_t<ValueType>>::value,
283 return DoEmplace<decay_t<ValueType>>(std::forward<Args>(args)...);
298 enable_if_t<std::is_constructible<decay_t<ValueType>, std::initializer_list<U>&, Args...>::value &&
299 std::is_copy_constructible<decay_t<ValueType>>::value,
301 decay_t<ValueType>& Emplace(std::initializer_list<U> il, Args&&... args)
304 return DoEmplace<decay_t<ValueType>>(il, std::forward<Args>(args)...);
326 Any tmp(std::move(*this));
327 *this = std::move(other);
328 other = std::move(tmp);
347 const std::type_info& Type() const noexcept
355 std::string_view __attribute__((no_sanitize("cfi"))) TypeName() const noexcept
376 bool SameTypeWith(const std::type_info& otherInfo) const noexcept
384 bool __attribute__((no_sanitize("cfi"))) SameTypeWith(std::string_view otherTypeName) const noexcept
411 using Stack = std::aligned_storage<STACK_STORAGE_SIZE, std::alignment_of<void*>::value>::type;
414 std::array<uint8_t, STACK_STORAGE_SIZE> trivialStack_;
421 const std::type_info& (*type)() noexcept;
423 std::string_view (*type_name)() noexcept;
437 static std::string_view GetTypeNameFromFunctionInfo(const char* functionInfo) noexcept;
442 static const std::type_info& Type() noexcept
447 static std::string_view TypeName() noexcept
518 static const std::type_info& Type() noexcept
523 static std::string_view TypeName() noexcept
577 new (reinterpret_cast<T*>(GetPtr(dest))) T(std::move(*reinterpret_cast<T*>(GetPtr(source))));
595 static const std::type_info& Type() noexcept
600 static std::string_view TypeName() noexcept
702 new (ptr) DecayedValueType(std::forward<Args>(args)...);
704 storage_.heap_ = new DecayedValueType(std::forward<Args>(args)...);
776 static_assert(!std::is_void<ValueType>::value, "ValueType of any_cast must not be void");
777 if (std::is_function<ValueType>::value || std::is_array<ValueType>::value || operand == nullptr) {
795 static_assert(!std::is_void<ValueType>::value, "ValueType of any_cast must not be void");
796 if (std::is_function<ValueType>::value || std::is_array<ValueType>::value || operand == nullptr) {
826 static_assert(!std::is_void<ValueType>::value, "ValueType of any_cast must not be void");
827 if (std::is_function<ValueType>::value || std::is_array<ValueType>::value || operand == nullptr) {
838 * 2. Let U be remove_cv_t<remove_reference_t<ValueType>>, then std::is_constructible<ValueType, const U&> must be true
848 static_assert(std::is_constructible<ValueType, const U&>::value,
860 * 2. Let U be remove_cv_t<remove_reference_t<ValueType>>, then std::is_constructible<ValueType, U&> must be true
870 static_assert(std::is_constructible<ValueType, U&>::value,
882 * 2. Let U be remove_cv_t<remove_reference_t<ValueType>>, then std::is_constructible<ValueType, U> must be true
892 static_assert(std::is_constructible<ValueType, U>::value,
896 return static_cast<ValueType>(std::move(*ptr));
911 tmp.Emplace<T, Args...>(std::forward<Args>(args)...);
926 Any MakeAny(std::initializer_list<U> il, Args&&... args)
929 tmp.Emplace<T, U, Args...>(il, std::forward<Args>(args)...);
934 inline typename std::enable_if<std::is_enum<T>::value, bool>::type MakeAnyFromParcel(Any& value, MessageParcel
947 namespace std {
952 } // namespace std