Handy helper to avoid longish comparisons. More...
#include "InsightsHelpers.h"
Public Member Functions | |
constexpr bool | any_of (const auto &... ts) const |
Public Attributes | |
T | t |
Handy helper to avoid longish comparisons.
The idea is taken from a talk from Björn Fahller at NDC TechTown 2019: Modern Techniques for Keeping Your Code DRY (https://youtu.be/YUWuNpxZa5k)
Definition at line 342 of file InsightsHelpers.h.
|
inlineconstexpr |
Definition at line 346 of file InsightsHelpers.h.
References clang::insights::is< T >::t.
Referenced by clang::insights::CodeGenerator::FormatCast(), clang::insights::CfrontCodeGenerator::FormatCast(), clang::insights::GetCastName(), and clang::insights::CodeGenerator::InsertMethodBody().
T clang::insights::is< T >::t |
Definition at line 344 of file InsightsHelpers.h.
Referenced by clang::insights::is< T >::any_of().