Visual Computing Library  devel
Loading...
Searching...
No Matches
vcl::OneTypeAtLeastSatisfiesCondition< Pred, Args > Struct Template Reference

Sets its value to true if there is at least one type in the given pack Args... that satisfies the given condition. More...

#include <vclib/base/filter_types.h>

Static Public Attributes

static constexpr bool value = NumberOfTypes<ResTypes>::value != 0
 

Private Types

using ResTypes = FilterTypesByCondition< Pred, Args... >::type
 

Detailed Description

template<template< typename > typename Pred, typename... Args>
struct vcl::OneTypeAtLeastSatisfiesCondition< Pred, Args >

Sets its value to true if there is at least one type in the given pack Args... that satisfies the given condition.

Usage:

// there is a type (int) that is integral
std::is_integral,
int, float, double>::value;
static_assert(res == true, "");
static const bool res2 =
std::is_integral,
float, double>::value;
static_assert(res2 != true, "");
A class representing a box in N-dimensional space.
Definition box.h:46
Sets its value to true if there is at least one type in the given pack Args... that satisfies the giv...
Definition filter_types.h:126

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