Clio  develop
The XRP Ledger API server.
Loading...
Searching...
No Matches
Concepts.hpp
1#pragma once
2
3#include <boost/beast/core/basic_stream.hpp>
4#include <boost/beast/core/tcp_stream.hpp>
5
6#include <type_traits>
7
8namespace web::ng::impl {
9
10template <typename T>
11concept IsTcpStream = std::is_same_v<std::decay_t<T>, boost::beast::tcp_stream>;
12
13template <typename T>
15 std::is_same_v<std::decay_t<T>, boost::asio::ssl::stream<boost::beast::tcp_stream>>;
16
17} // namespace web::ng::impl
Definition Concepts.hpp:14
Definition Concepts.hpp:11