mirror of
https://github.com/fmtlib/fmt.git
synced 2025-11-28 13:19:48 +01:00
Move output_range to format.h
This commit is contained in:
@@ -809,22 +809,6 @@ inline Container &get_container(std::back_insert_iterator<Container> it) {
|
||||
}
|
||||
} // namespace internal
|
||||
|
||||
template <typename OutputIt, typename T = typename OutputIt::value_type>
|
||||
class output_range {
|
||||
private:
|
||||
OutputIt it_;
|
||||
|
||||
// Unused yet.
|
||||
typedef void sentinel;
|
||||
sentinel end() const;
|
||||
|
||||
public:
|
||||
typedef T value_type;
|
||||
|
||||
explicit output_range(OutputIt it): it_(it) {}
|
||||
OutputIt begin() const { return it_; }
|
||||
};
|
||||
|
||||
// Formatting context.
|
||||
template <typename OutputIt, typename Char>
|
||||
class basic_context :
|
||||
|
||||
Reference in New Issue
Block a user