Iros
 
Loading...
Searching...
No Matches
fill_n.h
Go to the documentation of this file.
1#pragma once
2
7
8namespace di::container {
9namespace detail {
11 template<typename T, concepts::OutputIterator<T const&> Out, typename SSizeType = meta::IteratorSSizeType<Out>>
12 constexpr auto operator()(Out first, meta::TypeIdentity<SSizeType> n, T const& value) const -> Out {
13 for (SSizeType i = 0; i < n; ++i, ++first) {
14 *first = value;
15 }
16 return first;
17 }
18 };
19}
20
21constexpr inline auto fill_n = detail::FillNFunction {};
22}
23
24namespace di {
26}
Definition sequence.h:13
Definition sequence.h:12
constexpr auto fill_n
Definition fill_n.h:21
Type< TypeConstant< T > > TypeIdentity
This is a helper template to prevent C++ from deducing the type of template argument.
Definition core.h:32
Definition zstring_parser.h:9
constexpr auto operator()(Out first, meta::TypeIdentity< SSizeType > n, T const &value) const -> Out
Definition fill_n.h:12