28 lines
1.0 KiB
Groff
28 lines
1.0 KiB
Groff
|
|
.TH "serif::utils::dependencies::SnapshotPolicyFor" 3 "Version v0.0.1a" "SERiF" \" -*- nroff -*-
|
||
|
|
.ad l
|
||
|
|
.nh
|
||
|
|
.SH NAME
|
||
|
|
serif::utils::dependencies::SnapshotPolicyFor
|
||
|
|
.SH SYNOPSIS
|
||
|
|
.br
|
||
|
|
.PP
|
||
|
|
.PP
|
||
|
|
\fR#include <snapshot\&.hpp>\fP
|
||
|
|
.SH "Concept definition"
|
||
|
|
.PP
|
||
|
|
|
||
|
|
.nf
|
||
|
|
template<typename PolicyT, typename ValueT>
|
||
|
|
concept serif::utils::dependencies::SnapshotPolicyFor = requires(const PolicyT& policy, const ValueT& value) {
|
||
|
|
policy\&.capture(value);
|
||
|
|
requires std::is_object_v<decltype(policy\&.capture(value))>;
|
||
|
|
requires std::move_constructible<decltype(policy\&.capture(value))>;
|
||
|
|
{ policy\&.matches(std::declval<const decltype(policy\&.capture(value))&>(), value) } \-> std::convertible_to<bool>;
|
||
|
|
} && (!requires(const PolicyT& policy, const ValueT& value) { policy\&.identity(value); } ||
|
||
|
|
requires(const PolicyT& policy, const ValueT& value) { { policy\&.identity(value) } \-> std::convertible_to<const void*>; })
|
||
|
|
.PP
|
||
|
|
.fi
|
||
|
|
.SH "Author"
|
||
|
|
.PP
|
||
|
|
Generated automatically by Doxygen for SERiF from the source code\&.
|