53 template<
typename VIEW,
typename T>
78 template<
typename VIEW,
typename T>
79 constexpr enable_if_t<is_copy_assignable<T>::value>
80 fill(VIEW &vw, T
const &value) noexcept(
88 details::fill_impl(vw, value);
92 details::fill_impl(vw, value);
111 template<
typename ITER,
typename T>
112 constexpr enable_if_t<is_copy_assignable<T>::value>
113 fill(ITER first, ITER last, T
const &value) noexcept(
116 for (; first < last; ++first) {
117 *first.get_if() = value;
If the provided type is a fundamental type, provides the member constant value equal to true....
Definition: is_fundamental.hpp:76
constexpr enable_if_t< is_copy_assignable< T >::value > fill(VIEW &vw, T const &value) noexcept(//-- is_nothrow_copy_assignable< T >::value)
Sets all elements of a view to "value". T must be copy assignable.
Definition: fill.hpp:80
void * builtin_memset(void *const dst, bsl::int8 const ch, bsl::uintmax const count) noexcept
Same as std::memset with parameter checks. If dst is a nullptr, or count is 0, this function returns ...
Definition: cstring.hpp:79
constexpr void fill_impl(VIEW &vw, T const &value) noexcept(//-- is_nothrow_copy_assignable< T >::value)
Provides the internal implementation of the fill function. Specifically, this is the non-optimized ve...
Definition: fill.hpp:55
constexpr bool is_constant_evaluated() noexcept
Detects whether the function call occurs within a constant-evaluated context. Returns true if the eva...
Definition: is_constant_evaluated.hpp:46
If the provided type is nothrow copy assignable, provides the member constant value equal to true....
Definition: is_nothrow_copy_assignable.hpp:49
::uintmax_t uintmax
defines a unsigned integer with the maximum possible size
Definition: cstdint.hpp:97