Clio  develop
The XRP Ledger API server.
Loading...
Searching...
No Matches
util::async::SomeStdDuration Concept Reference

Specifies that the type must be some std::duration. More...

#include <Concepts.hpp>

Concept definition

template<typename T>
concept SomeStdDuration = requires {
// Thank you Ed Catmur for this trick.
// See https://stackoverflow.com/questions/74383254/concept-that-models-only-the-stdchrono-duration-types
[]<typename Rep, typename Period>( //
std::type_identity<std::chrono::duration<Rep, Period>>
) {}(std::type_identity<std::decay_t<T>>());
}
Specifies that the type must be some std::duration.
Definition Concepts.hpp:191

Detailed Description

Specifies that the type must be some std::duration.