deal.II version GIT relicensing-1982-gbb401394a0 2024-10-13 08:40:01+00:00
\(\newcommand{\dealvcentcolon}{\mathrel{\mathop{:}}}\) \(\newcommand{\dealcoloneq}{\dealvcentcolon\mathrel{\mkern-1.2mu}=}\) \(\newcommand{\jump}[1]{\left[\!\left[ #1 \right]\!\right]}\) \(\newcommand{\average}[1]{\left\{\!\left\{ #1 \right\}\!\right\}}\)
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
always_return< ArgType, ValueType > Struct Template Reference

#include <deal.II/base/template_constraints.h>

Public Member Functions

ValueType operator() (const ArgType &)
 

Public Attributes

ValueType value
 

Detailed Description

template<typename ArgType, typename ValueType>
struct always_return< ArgType, ValueType >

A class that always returns a given value. This is needed as a workaround for lambdas used as default parameters some compilers struggle to deal with.

Definition at line 332 of file template_constraints.h.

Member Function Documentation

◆ operator()()

template<typename ArgType , typename ValueType >
ValueType always_return< ArgType, ValueType >::operator() ( const ArgType &  )
inline

Definition at line 336 of file template_constraints.h.

Member Data Documentation

◆ value

template<typename ArgType , typename ValueType >
ValueType always_return< ArgType, ValueType >::value

Definition at line 334 of file template_constraints.h.


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