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

Assert that the ConformingType conforms to the Protocol. More...

#include <ProtocolHelpers.hpp>

Detailed Description

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

Assert that the ConformingType conforms to the Protocol.

Similar to tt::conforms_to, but not SFINAE-friendly. Instead, triggers static asserts with diagnostic messages to understand why the ConformingType fails to conform to the Protocol.

See also
Documentation on Protocols
tt::conforms_to

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