entity: replace std::output_iterator with stl::output_iterator
This commit is contained in:
@@ -315,7 +315,7 @@ public:
|
||||
* @param first An iterator to the first element of the range to generate.
|
||||
* @param last An iterator past the last element of the range to generate.
|
||||
*/
|
||||
template<std::output_iterator<entity_type> It>
|
||||
template<stl::output_iterator<entity_type> It>
|
||||
void generate(It first, It last) {
|
||||
underlying_type::generate(first, last);
|
||||
|
||||
|
||||
@@ -491,7 +491,7 @@ public:
|
||||
* @param first An iterator to the first element of the range to generate.
|
||||
* @param last An iterator past the last element of the range to generate.
|
||||
*/
|
||||
template<std::output_iterator<entity_type> It>
|
||||
template<stl::output_iterator<entity_type> It>
|
||||
void create(It first, It last) {
|
||||
entities.generate(std::move(first), std::move(last));
|
||||
}
|
||||
|
||||
@@ -1136,7 +1136,7 @@ public:
|
||||
* @param first An iterator to the first element of the range to generate.
|
||||
* @param last An iterator past the last element of the range to generate.
|
||||
*/
|
||||
template<std::output_iterator<entity_type> It>
|
||||
template<stl::output_iterator<entity_type> It>
|
||||
void generate(It first, It last) {
|
||||
for(const auto sz = base_type::size(); first != last && base_type::free_list() != sz; ++first) {
|
||||
*first = *base_type::try_emplace(base_type::data()[base_type::free_list()], true);
|
||||
|
||||
Reference in New Issue
Block a user