Tests if a given expression can be instantiated.
More...
#include <lin/core/traits/utilities.hpp>
template<template< typename... > class E, typename... Ts>
struct lin::internal::is_detected< E, Ts >
Tests if a given expression can be instantiated.
- Template Parameters
-
E | Template expression type. |
Ts | Set of types we try to instantiate E with. |
An example use case is given here:
#include <utility>
template <typename T, typename U>
using add_expr = decltype(std::declval<T &>() + std::declval<U &>());
The documentation for this struct was generated from the following file: