SpECTRE  v2024.04.12
tt::conforms_to< ConformingType, Protocol > Struct Template Reference

Checks if the ConformingType conforms to the Protocol. More...

#include <ProtocolHelpers.hpp>

Detailed Description

template<typename ConformingType, typename Protocol>
struct tt::conforms_to< ConformingType, Protocol >

Checks if the ConformingType conforms to the Protocol.

This metafunction is SFINAE-friendly. See tt::assert_conforms_to for a metafunction that is not SFINAE-friendly but that triggers static asserts with diagnostic messages to understand why the ConformingType does not conform to the Protocol.

This metafunction only checks if the class derives off the protocol to reduce compile time. Protocol conformance is tested rigorously in the unit tests instead.

See also
Documentation on Protocols
tt::assert_conforms_to

The documentation for this struct was generated from the following file: