Lines Matching refs:value

1309    * expect when a value is omitted. It also computes
1354 * variable is exposed (since its value will not depend on the compiler).
1914 static_assert(!std::is_same<E, void>::value, "E must not be void");
1922 E, Args &&...>::value>::type * = nullptr>
1928 E, std::initializer_list<U> &, Args &&...>::value>::type * = nullptr>
1932 constexpr const E &value() const & { return m_val; }
1933 TL_EXPECTED_11_CONSTEXPR E &value() & { return m_val; }
1934 TL_EXPECTED_11_CONSTEXPR E &&value() && { return std::move(m_val); }
1935 constexpr const E &&value() const && { return std::move(m_val); }
1948 return lhs.value() == rhs.value();
1952 return lhs.value() != rhs.value();
1956 return lhs.value() < rhs.value();
1960 return lhs.value() <= rhs.value();
1964 return lhs.value() > rhs.value();
1968 return lhs.value() >= rhs.value();
2017 : std::conditional<bool(B::value), conjunction<Bs...>, B>::type {};
2061 typename = enable_if_t<!(is_pointer_to_non_const_member_func<Fn>::value &&
2062 is_const_or_const_ref<Args...>::value)>,
2064 typename = enable_if_t<std::is_member_pointer<decay_t<Fn>>::value>, int = 0>
2072 typename = enable_if_t<!std::is_member_pointer<decay_t<Fn>>::value>>
2135 std::is_nothrow_move_constructible<T>::value &&
2136 std::is_nothrow_move_assignable<T>::value> {};
2150 decltype(detail::swap_adl_tests::can_swap<T, U>(0))::value &&
2151 (!decltype(detail::swap_adl_tests::uses_std<T, U>(0))::value ||
2152 (std::is_move_assignable<T>::value &&
2153 std::is_move_constructible<T>::value))> {};
2159 decltype(detail::swap_adl_tests::can_swap<T[N], T[N]>(0))::value &&
2161 0))::value ||
2162 is_swappable<T, T>::value)> {};
2168 is_swappable<T, U>::value &&
2169 ((decltype(detail::swap_adl_tests::uses_std<T, U>(0))::value &&
2170 detail::swap_adl_tests::is_std_swap_noexcept<T>::value) ||
2171 (!decltype(detail::swap_adl_tests::uses_std<T, U>(0))::value &&
2172 detail::swap_adl_tests::is_adl_swap_noexcept<T, U>::value))> {};
2186 std::is_constructible<T, U &&>::value &&
2187 !std::is_same<detail::decay_t<U>, in_place_t>::value &&
2188 !std::is_same<expected<T, E>, detail::decay_t<U>>::value &&
2189 !std::is_same<unexpected<E>, detail::decay_t<U>>::value>;
2193 std::is_constructible<T, UR>::value &&
2194 std::is_constructible<E, GR>::value &&
2195 !std::is_constructible<T, expected<U, G> &>::value &&
2196 !std::is_constructible<T, expected<U, G> &&>::value &&
2197 !std::is_constructible<T, const expected<U, G> &>::value &&
2198 !std::is_constructible<T, const expected<U, G> &&>::value &&
2199 !std::is_convertible<expected<U, G> &, T>::value &&
2200 !std::is_convertible<expected<U, G> &&, T>::value &&
2201 !std::is_convertible<const expected<U, G> &, T>::value &&
2202 !std::is_convertible<const expected<U, G> &&, T>::value>;
2205 using is_void_or = conditional_t<std::is_void<T>::value, std::true_type, U>;
2233 template <class T, class E, bool = std::is_trivially_destructible<T>::value,
2234 bool = std::is_trivially_destructible<E>::value>
2240 detail::enable_if_t<std::is_constructible<T, Args &&...>::value> * =
2247 T, std::initializer_list<U> &, Args &&...>::value> * = nullptr>
2252 detail::enable_if_t<std::is_constructible<E, Args &&...>::value> * =
2259 E, std::initializer_list<U> &, Args &&...>::value> * = nullptr>
2288 detail::enable_if_t<std::is_constructible<T, Args &&...>::value> * =
2295 T, std::initializer_list<U> &, Args &&...>::value> * = nullptr>
2300 detail::enable_if_t<std::is_constructible<E, Args &&...>::value> * =
2307 E, std::initializer_list<U> &, Args &&...>::value> * = nullptr>
2330 detail::enable_if_t<std::is_constructible<T, Args &&...>::value> * =
2337 T, std::initializer_list<U> &, Args &&...>::value> * = nullptr>
2342 detail::enable_if_t<std::is_constructible<E, Args &&...>::value> * =
2349 E, std::initializer_list<U> &, Args &&...>::value> * = nullptr>
2376 detail::enable_if_t<std::is_constructible<T, Args &&...>::value> * =
2383 T, std::initializer_list<U> &, Args &&...>::value> * = nullptr>
2388 detail::enable_if_t<std::is_constructible<E, Args &&...>::value> * =
2395 E, std::initializer_list<U> &, Args &&...>::value> * = nullptr>
2429 detail::enable_if_t<std::is_constructible<E, Args &&...>::value> * =
2436 E, std::initializer_list<U> &, Args &&...>::value> * = nullptr>
2460 detail::enable_if_t<std::is_constructible<E, Args &&...>::value> * =
2467 E, std::initializer_list<U> &, Args &&...>::value> * = nullptr>
2515 // The problematic case is where rhs has a value, but *this does not.
2520 detail::enable_if_t<std::is_nothrow_copy_constructible<U>::value>
2534 detail::enable_if_t<!std::is_nothrow_copy_constructible<U>::value &&
2535 std::is_nothrow_move_constructible<U>::value>
2548 // unexpected value into temporary storage, then try to copy the T into place.
2550 // then we move the old unexpected value back into place before rethrowing the
2553 detail::enable_if_t<!std::is_nothrow_copy_constructible<U>::value &&
2554 !std::is_nothrow_move_constructible<U>::value>
2578 detail::enable_if_t<std::is_nothrow_move_constructible<U>::value>
2590 detail::enable_if_t<!std::is_nothrow_move_constructible<U>::value>
2741 value &&TL_EXPECTED_IS_TRIVIALLY_COPY_CONSTRUCTIBLE(E)::value>
2773 bool = is_void_or<T, std::is_trivially_move_constructible<T>>::value
2774 &&std::is_trivially_move_constructible<E>::value>
2790 std::is_nothrow_move_constructible<T>::value)
2807 TL_EXPECTED_IS_TRIVIALLY_DESTRUCTIBLE(T)>>::value
2808 &&TL_EXPECTED_IS_TRIVIALLY_COPY_ASSIGNABLE(E)::value
2809 &&TL_EXPECTED_IS_TRIVIALLY_COPY_CONSTRUCTIBLE(E)::value
2810 &&TL_EXPECTED_IS_TRIVIALLY_DESTRUCTIBLE(E)::value>
2842 value &&std::is_trivially_destructible<E>::value
2843 &&std::is_trivially_move_constructible<E>::value
2844 &&std::is_trivially_move_assignable<E>::value>
2868 std::is_nothrow_move_constructible<T>::value
2869 &&std::is_nothrow_move_assignable<T>::value) {
2878 bool EnableCopy = (is_copy_constructible_or_void<T>::value &&
2879 std::is_copy_constructible<E>::value),
2880 bool EnableMove = (is_move_constructible_or_void<T>::value &&
2881 std::is_move_constructible<E>::value)>
2929 bool EnableCopy = (is_copy_constructible_or_void<T>::value &&
2930 std::is_copy_constructible<E>::value &&
2931 is_copy_assignable_or_void<T>::value &&
2932 std::is_copy_assignable<E>::value),
2933 bool EnableMove = (is_move_constructible_or_void<T>::value &&
2934 std::is_move_constructible<E>::value &&
2935 is_move_assignable_or_void<T>::value &&
2936 std::is_move_assignable<E>::value)>
2995 std::is_default_constructible<T>::value || std::is_void<T>::value>
3057 static_assert(!std::is_reference<T>::value, "T must not be a reference");
3058 static_assert(!std::is_same<T, std::remove_cv<in_place_t>::type>::value,
3060 static_assert(!std::is_same<T, std::remove_cv<unexpect_t>::type>::value,
3063 !std::is_same<T, typename std::remove_cv<unexpected<E>>::type>::value,
3065 static_assert(!std::is_reference<E>::value, "E must not be a reference");
3075 detail::enable_if_t<!std::is_void<U>::value> * = nullptr>
3082 detail::enable_if_t<!std::is_void<U>::value> * = nullptr>
3362 detail::enable_if_t<std::is_constructible<T, Args &&...>::value> * =
3370 T, std::initializer_list<U> &, Args &&...>::value> * = nullptr>
3376 detail::enable_if_t<std::is_constructible<E, const G &>::value> * =
3378 detail::enable_if_t<!std::is_convertible<const G &, E>::value> * =
3381 : impl_base(unexpect, e.value()),
3386 detail::enable_if_t<std::is_constructible<E, const G &>::value> * =
3388 detail::enable_if_t<std::is_convertible<const G &, E>::value> * = nullptr>
3390 : impl_base(unexpect, e.value()),
3395 detail::enable_if_t<std::is_constructible<E, G &&>::value> * = nullptr,
3396 detail::enable_if_t<!std::is_convertible<G &&, E>::value> * = nullptr>
3398 std::is_nothrow_constructible<E, G &&>::value)
3399 : impl_base(unexpect, std::move(e.value())),
3404 detail::enable_if_t<std::is_constructible<E, G &&>::value> * = nullptr,
3405 detail::enable_if_t<std::is_convertible<G &&, E>::value> * = nullptr>
3407 std::is_nothrow_constructible<E, G &&>::value)
3408 : impl_base(unexpect, std::move(e.value())),
3412 detail::enable_if_t<std::is_constructible<E, Args &&...>::value> * =
3420 E, std::initializer_list<U> &, Args &&...>::value> * = nullptr>
3427 detail::enable_if_t<!(std::is_convertible<U const &, T>::value &&
3428 std::is_convertible<G const &, E>::value)> * =
3442 detail::enable_if_t<(std::is_convertible<U const &, T>::value &&
3443 std::is_convertible<G const &, E>::value)> * =
3458 detail::enable_if_t<!(std::is_convertible<U &&, T>::value &&
3459 std::is_convertible<G &&, E>::value)> * = nullptr,
3472 detail::enable_if_t<(std::is_convertible<U &&, T>::value &&
3473 std::is_convertible<G &&, E>::value)> * = nullptr,
3486 detail::enable_if_t<!std::is_convertible<U &&, T>::value> * = nullptr,
3493 detail::enable_if_t<std::is_convertible<U &&, T>::value> * = nullptr,
3500 detail::enable_if_t<std::is_nothrow_constructible<T, U &&>::value> * =
3502 detail::enable_if_t<!std::is_void<G>::value> * = nullptr,
3504 (!std::is_same<expected<T, E>, detail::decay_t<U>>::value &&
3506 std::is_same<T, detail::decay_t<U>>>::value &&
3507 std::is_constructible<T, U>::value &&
3508 std::is_assignable<G &, U>::value &&
3509 std::is_nothrow_move_constructible<E>::value)> * = nullptr>
3524 detail::enable_if_t<!std::is_nothrow_constructible<T, U &&>::value> * =
3526 detail::enable_if_t<!std::is_void<U>::value> * = nullptr,
3528 (!std::is_same<expected<T, E>, detail::decay_t<U>>::value &&
3530 std::is_same<T, detail::decay_t<U>>>::value &&
3531 std::is_constructible<T, U>::value &&
3532 std::is_assignable<G &, U>::value &&
3533 std::is_nothrow_move_constructible<E>::value)> * = nullptr>
3559 detail::enable_if_t<std::is_nothrow_copy_constructible<G>::value &&
3560 std::is_assignable<G &, G>::value> * = nullptr>
3574 detail::enable_if_t<std::is_nothrow_move_constructible<G>::value &&
3575 std::is_move_assignable<G>::value> * = nullptr>
3589 T, Args &&...>::value> * = nullptr>
3601 T, Args &&...>::value> * = nullptr>
3627 T, std::initializer_list<U> &, Args &&...>::value> * = nullptr>
3641 T, std::initializer_list<U> &, Args &&...>::value> * = nullptr>
3683 std::is_nothrow_move_constructible<E>::value) {
3754 detail::enable_if_t<detail::is_swappable<OT>::value &&
3755 detail::is_swappable<OE>::value &&
3756 (std::is_nothrow_move_constructible<OT>::value ||
3757 std::is_nothrow_move_constructible<OE>::value)>
3759 std::is_nothrow_move_constructible<T>::value
3760 &&detail::is_nothrow_swappable<T>::value
3761 &&std::is_nothrow_move_constructible<E>::value
3762 &&detail::is_nothrow_swappable<E>::value) {
3785 detail::enable_if_t<!std::is_void<U>::value> * = nullptr>
3791 detail::enable_if_t<!std::is_void<U>::value> * = nullptr>
3797 detail::enable_if_t<!std::is_void<U>::value> * = nullptr>
3803 detail::enable_if_t<!std::is_void<U>::value> * = nullptr>
3813 detail::enable_if_t<!std::is_void<U>::value> * = nullptr>
3814 TL_EXPECTED_11_CONSTEXPR const U &value() const & {
3816 detail::throw_exception(bad_expected_access<E>(err().value()));
3820 detail::enable_if_t<!std::is_void<U>::value> * = nullptr>
3821 TL_EXPECTED_11_CONSTEXPR U &value() & {
3823 detail::throw_exception(bad_expected_access<E>(err().value()));
3827 detail::enable_if_t<!std::is_void<U>::value> * = nullptr>
3828 TL_EXPECTED_11_CONSTEXPR const U &&value() const && {
3830 detail::throw_exception(bad_expected_access<E>(std::move(err()).value()));
3834 detail::enable_if_t<!std::is_void<U>::value> * = nullptr>
3835 TL_EXPECTED_11_CONSTEXPR U &&value() && {
3837 detail::throw_exception(bad_expected_access<E>(std::move(err()).value()));
3843 return err().value();
3847 return err().value();
3851 return std::move(err().value());
3855 return std::move(err().value());
3860 static_assert(std::is_copy_constructible<T>::value &&
3861 std::is_convertible<U &&, T>::value,
3867 static_assert(std::is_move_constructible<T>::value &&
3868 std::is_convertible<U &&, T>::value,
3884 detail::enable_if_t<!std::is_void<exp_t<Exp>>::value> * = nullptr,
3888 static_assert(detail::is_expected<Ret>::value, "F must return an expected");
3896 detail::enable_if_t<std::is_void<exp_t<Exp>>::value> * = nullptr,
3899 static_assert(detail::is_expected<Ret>::value, "F must return an expected");
3910 detail::enable_if_t<!std::is_void<exp_t<Exp>>::value> * = nullptr>
3912 static_assert(detail::is_expected<Ret>::value, "F must return an expected");
3921 detail::enable_if_t<std::is_void<exp_t<Exp>>::value> * = nullptr>
3923 static_assert(detail::is_expected<Ret>::value, "F must return an expected");
3932 detail::enable_if_t<!std::is_void<exp_t<Exp>>::value> * = nullptr,
3935 detail::enable_if_t<!std::is_void<Ret>::value> * = nullptr>
3944 detail::enable_if_t<!std::is_void<exp_t<Exp>>::value> * = nullptr,
3947 detail::enable_if_t<std::is_void<Ret>::value> * = nullptr>
3959 detail::enable_if_t<std::is_void<exp_t<Exp>>::value> * = nullptr,
3961 detail::enable_if_t<!std::is_void<Ret>::value> * = nullptr>
3969 detail::enable_if_t<std::is_void<exp_t<Exp>>::value> * = nullptr,
3971 detail::enable_if_t<std::is_void<Ret>::value> * = nullptr>
3983 detail::enable_if_t<!std::is_void<exp_t<Exp>>::value> * = nullptr,
3986 detail::enable_if_t<!std::is_void<Ret>::value> * = nullptr>
3998 detail::enable_if_t<!std::is_void<exp_t<Exp>>::value> * = nullptr,
4001 detail::enable_if_t<std::is_void<Ret>::value> * = nullptr>
4013 detail::enable_if_t<std::is_void<exp_t<Exp>>::value> * = nullptr,
4015 detail::enable_if_t<!std::is_void<Ret>::value> * = nullptr>
4026 detail::enable_if_t<std::is_void<exp_t<Exp>>::value> * = nullptr,
4028 detail::enable_if_t<std::is_void<Ret>::value> * = nullptr>
4043 detail::enable_if_t<!std::is_void<exp_t<Exp>>::value> * = nullptr,
4046 detail::enable_if_t<!std::is_void<Ret>::value> * = nullptr>
4055 detail::enable_if_t<!std::is_void<exp_t<Exp>>::value> * = nullptr,
4058 detail::enable_if_t<std::is_void<Ret>::value> * = nullptr>
4069 detail::enable_if_t<std::is_void<exp_t<Exp>>::value> * = nullptr,
4072 detail::enable_if_t<!std::is_void<Ret>::value> * = nullptr>
4081 detail::enable_if_t<std::is_void<exp_t<Exp>>::value> * = nullptr,
4084 detail::enable_if_t<std::is_void<Ret>::value> * = nullptr>
4096 detail::enable_if_t<!std::is_void<exp_t<Exp>>::value> * = nullptr,
4099 detail::enable_if_t<!std::is_void<Ret>::value> * = nullptr>
4111 detail::enable_if_t<!std::is_void<exp_t<Exp>>::value> * = nullptr,
4114 detail::enable_if_t<std::is_void<Ret>::value> * = nullptr>
4126 detail::enable_if_t<std::is_void<exp_t<Exp>>::value> * = nullptr,
4129 detail::enable_if_t<!std::is_void<Ret>::value> * = nullptr>
4141 detail::enable_if_t<std::is_void<exp_t<Exp>>::value> * = nullptr,
4144 detail::enable_if_t<std::is_void<Ret>::value> * = nullptr>
4160 detail::enable_if_t<!std::is_void<Ret>::value> * = nullptr>
4162 static_assert(detail::is_expected<Ret>::value, "F must return an expected");
4171 detail::enable_if_t<std::is_void<Ret>::value> * = nullptr>
4182 detail::enable_if_t<!std::is_void<Ret>::value> * = nullptr>
4184 static_assert(detail::is_expected<Ret>::value, "F must return an expected");
4193 detail::enable_if_t<std::is_void<Ret>::value> * = nullptr>
4251 return x.has_value() ? false : x.error() == e.value();
4255 return x.has_value() ? false : x.error() == e.value();
4259 return x.has_value() ? true : x.error() != e.value();
4263 return x.has_value() ? true : x.error() != e.value();
4267 detail::enable_if_t<(std::is_void<T>::value ||
4268 std::is_move_constructible<T>::value) &&
4269 detail::is_swappable<T>::value &&
4270 std::is_move_constructible<E>::value &&
4271 detail::is_swappable<E>::value> * = nullptr>
5512 return !host.has_value() || host.value().empty() ||
5519 return host.value().empty();
5555 out.host_end = uint32_t(out.host_start + host.value().size());
5560 out.host_end = uint32_t(out.host_start + host.value().size()) - 1;
5681 output += host.value();
5693 output += "?" + query.value();
5696 output += "#" + hash.value();
6300 // calling std::to_string(input.value()) is unfortunate given that the port
6301 // value is probably already available as a string.
6302 std::string value = helpers::concat(":", std::to_string(input));
6303 uint32_t difference = uint32_t(value.size());
6311 buffer.insert(components.host_end, value);
6735 inline void append(std::string_view key, std::string_view value);
6741 inline void remove(std::string_view key, std::string_view value);
6757 inline bool has(std::string_view key, std::string_view value) noexcept;
6762 inline void set(std::string_view key, std::string_view value);
6894 auto value = std::string(current.substr(equal + 1));
6897 std::replace(value.begin(), value.end(), '+', ' ');
6900 unicode::percent_decode(value, value.find('%')));
6921 const std::string_view value) {
6922 params.emplace_back(key, value);
6959 std::string_view value) noexcept {
6961 std::find_if(params.begin(), params.end(), [&key, &value](auto &param) {
6962 return param.first == key && param.second == value;
6972 auto value = ada::unicode::percent_encode(params[i].second, character_set);
6976 std::replace(value.begin(), value.end(), ' ', '+');
6983 out.append(value);
6989 const std::string_view value) {
6995 params.emplace_back(key, value);
6997 it->second = value;
7011 const std::string_view value) {
7013 [&key, &value](auto &param) {
7015 param.second == value;
7117 * The URL parser takes a scalar value string input, with an optional null or