Malloy
Loading...
Searching...
No Matches
malloy::concepts::callable_string Concept Reference

#include <type_traits.hpp>

Concept definition

template<typename T>
concept callable_string = requires(T t)
{
{ t() } -> std::same_as<std::string>;
// { t() } -> std::same_as<std::string_view>; // ToDo: Want to extend this to also accept std::string_view as return type.
}
Definition type_traits.hpp:53

Detailed Description

Concept to check whether a type has a function with the following signature:

  • std::string operator()()
Template Parameters
T