Sequoia
Loading...
Searching...
No Matches
IteratorTestingUtilities.hpp
Go to the documentation of this file.
1
2// Copyright Oliver J. Rosten 2019. //
3// Distributed under the GNU GENERAL PUBLIC LICENSE, Version 3.0. //
4// (See accompanying file LICENSE.md or copy at //
5// https://www.gnu.org/licenses/gpl-3.0.en.html) //
7
8#pragma once
9
13
14namespace sequoia::testing
15{
16 template<std::input_or_output_iterator Iterator, class DereferencePolicy>
17 struct serializer<utilities::iterator<Iterator, DereferencePolicy>>
18 {
20
21 [[nodiscard]]
22 static std::string make(const iter_type iter)
23 {
24 std::ostringstream os;
25 os << &*iter.base_iterator();
26 return os.str();
27 }
28 };
29}
Implementation for an iterator with policies controlling dereferencing and auxiliary data.
An iterator with policies controlling dereferencing and auxiliary data.
Definition: Iterator.hpp:234
Specialize this struct template to provide custom serialization of a given class. .
Definition: CoreInfrastructure.hpp:28