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

Sets type to the first type of a pack that satisfies the given condition. More...

#include <vclib/base/filter_types.h>

Public Types

using type = FirstTypeT< ResTypes >
 

Private Types

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

Detailed Description

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

Sets type to the first type of a pack that satisfies the given condition.

Usage:

// the first integral type is char
using ResType =
static_assert(std::is_same<ResType, char>::value, "");
A class representing a box in N-dimensional space.
Definition box.h:46

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