userver
C++ Async Framework
Loading...
Searching...
No Matches
span.hpp
Go to the documentation of this file.
1
#
pragma
once
2
3
/// @file userver/storages/postgres/io/span.hpp
4
/// @brief std::span I/O support
5
/// @ingroup userver_postgres_parse_and_format
6
7
#
include
<
span
>
8
9
#
include
<
userver
/
storages
/
postgres
/
io
/
array_types
.
hpp
>
10
11
USERVER_NAMESPACE_BEGIN
12
13
namespace
storages::
postgres
::
io
::
traits
{
14
15
template
<
typename
T, std::size_t Extent>
16
struct
IsCompatibleContainer
<std::span<T, Extent>> : std::true_type {};
17
18
namespace
detail {
19
20
struct
SpanHasNoParser;
21
22
}
// namespace detail
23
24
/// Override the array Input<T> = ArrayBinaryParser<T> that would otherwise be
25
/// auto-selected via IsCompatibleContainer.
26
template
<
typename
T, std::size_t Extent>
27
struct
Input
<std::span<T, Extent>> {
28
using
type = detail::SpanHasNoParser;
29
};
30
31
}
// namespace storages::postgres::io::traits
32
33
USERVER_NAMESPACE_END
userver
storages
postgres
io
span.hpp
Generated on Tue Jun 30 2026 13:10:56 for userver by
Doxygen
1.13.2