opynsim
Unofficial C++ Documentation
Loading...
Searching...
No Matches
named_input_stream.h
Go to the documentation of this file.
1#pragma once
2
3#include <concepts>
4#include <iosfwd>
5#include <string_view>
6
7namespace osc
8{
9 // Satisfied if `T` is convertible to `std::istream&` and `T`
10 // has a `name()` member method that returns something that is
11 // convertible to `std::string_view` (i.e. it's a stream with
12 // a name).
13 template<typename T>
14 concept NamedInputStream = requires(T v) {
15 { v } -> std::convertible_to<std::istream&>;
16 { v.name() } -> std::convertible_to<std::string_view>;
17 };
18}
Definition named_input_stream.h:14
Definition custom_decoration_generator.h:5
constexpr U to(T &&value)
Definition conversion.h:56