Peano
Loading...
Searching...
No Matches
concept.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <
lang/type.h
>
4
5
template
<
typename
T>
6
concept
IoWriter
=
requires
(T t) {
7
{ t.write(
Any
()) } -> std::same_as<void>;
8
{ t.write(
void_ptr
(),
u64
()) } -> std::same_as<void>;
9
{ t.seek(
u64
()) } -> std::same_as<void>;
10
{ t.sync() } -> std::same_as<void>;
11
{ t.getPos() } -> std::same_as<u64>;
12
};
13
14
template
<
typename
T>
15
concept
IoBufferedWriter
=
IoWriter<T>
&&
requires
(T t) {
16
{ t.buffer(
u64
()) } -> std::same_as<void*>;
17
};
IoBufferedWriter
Definition
concept.h:15
IoWriter
Definition
concept.h:6
Any
Definition
type.h:19
type.h
void_ptr
ptr< void >::value void_ptr
Definition
type.h:31
u64
std::uint64_t u64
Definition
type.h:13
benchmarks
other
noh2d-common
spacetree
io
writer
concept.h
Generated on Fri Apr 25 2025 14:58:48 for Peano by
1.10.0