Bitcoin Core 32.99.0
P2P Digital Currency
Loading...
Searching...
No Matches
mp::FieldTypeIs Concept Reference

Concept satisfied when T's .get() method returns exactly type U. More...

#include <util.h>

Concept definition

template<typename T, typename U>
concept mp::FieldTypeIs = std::is_same_v<decltype(std::declval<T>().get()), U>
Concept satisfied when T's .get() method returns exactly type U.
Definition util.h:115
constexpr auto Ticks(Dur2 d)
Helper to count the seconds of a duration/time_point.
Definition time.h:82

Detailed Description

Concept satisfied when T's .get() method returns exactly type U.

Used to constrain overloads that handle a specific capnp field type.

Definition at line 115 of file util.h.