Lines Matching defs:value

53     static constexpr bool value =
54 alignof(T) <= alignof(max_align_t) && std::is_trivially_copyable<T>::value && sizeof(T) <= STACK_STORAGE_SIZE;
59 static constexpr bool value = alignof(T) <= alignof(max_align_t) && std::is_nothrow_move_constructible<T>::value &&
65 static constexpr bool value = std::is_reference<T>::value || std::is_copy_constructible<T>::value;
113 * constructor from right reference value with type of ValueType.
116 * @param value content
118 template <typename ValueType, enable_if_t<!std::is_same<decay_t<ValueType>, Any>::value &&
119 std::is_copy_constructible<decay_t<ValueType>>::value,
121 Any(ValueType&& value) // NOLINT: explicit
123 DoEmplace<decay_t<ValueType>>(std::forward<ValueType>(value));
144 * @param value content
147 template <typename ValueType, enable_if_t<!std::is_same<decay_t<ValueType>, Any>::value &&
148 std::is_copy_constructible<decay_t<ValueType>>::value,
150 Any& operator=(ValueType&& value)
152 *this = Any(std::forward<ValueType>(value));
191 enable_if_t<std::is_constructible<decay_t<ValueType>, Args...>::value &&
192 std::is_copy_constructible<decay_t<ValueType>>::value,
212 enable_if_t<std::is_constructible<decay_t<ValueType>, std::initializer_list<U>&, Args...>::value &&
213 std::is_copy_constructible<decay_t<ValueType>>::value,
272 return "empty"; // no value
311 friend bool AnyCast(const Any* operand, T& value) noexcept;
314 using Stack = std::aligned_storage<STACK_STORAGE_SIZE, std::alignment_of<void*>::value>::type;
463 conditional_t<IsTrivialStackStorable<DecayedValueType>::value,
465 conditional_t<IsStackStorable<DecayedValueType>::value,
492 if (IsTrivialStackStorable<DecayedValueType>::value || IsStackStorable<DecayedValueType>::value) {
525 return IsTrivialStackStorable<DecayedValueType>::value
527 : (IsStackStorable<DecayedValueType>::value
545 return IsTrivialStackStorable<DecayedValueType>::value
547 : (IsStackStorable<DecayedValueType>::value
560 * @tparam ValueType target value type
563 * const value contained by operand.
568 static_assert(!std::is_void<ValueType>::value, "ValueType of any_cast must not be void");
569 if (std::is_function<ValueType>::value || std::is_array<ValueType>::value || operand == nullptr) {
578 * @tparam ValueType target value type
580 * @param value ValueType
582 * value contained by operand.
585 bool AnyCast(const Any* operand, ValueType& value) noexcept
587 static_assert(!std::is_void<ValueType>::value, "ValueType of any_cast must not be void");
588 if (std::is_function<ValueType>::value || std::is_array<ValueType>::value || operand == nullptr) {
600 value = *casted_value;
610 * @tparam ValueType target value type
613 * value contained by operand.
618 static_assert(!std::is_void<ValueType>::value, "ValueType of any_cast must not be void");
619 if (std::is_function<ValueType>::value || std::is_array<ValueType>::value || operand == nullptr) {
628 * @tparam ValueType target value type. It must match both conditions:
639 static_assert(IsValidCast<ValueType>::value, "template argument must be a reference or has copy constructors");
640 static_assert(std::is_constructible<ValueType, const U&>::value,
653 * @tparam ValueType target value type. It must match both conditions:
664 static_assert(IsValidCast<ValueType>::value, "template argument must be a reference or has copy constructors");
665 static_assert(std::is_constructible<ValueType, U&>::value,
678 * @tparam ValueType target value type. It must match both conditions:
689 static_assert(IsValidCast<ValueType>::value, "template argument must be a reference or has copy constructors");
690 static_assert(std::is_constructible<ValueType, U>::value,