Files
MeanField_SERiF/docs/man/man3/serif_utils_dependencies_SnapshotPolicyFor.3

28 lines
1.0 KiB
Groff
Raw Normal View History

.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\&.