dune-common  2.4.1
Macros
constexpr.hh File Reference

Definition of the DUNE_CONSTEXPR macro. More...

Go to the source code of this file.

Macros

#define DUNE_CONSTEXPR   constexpr
 Set method or expression constexpr if supported by the compiler. More...
 

Detailed Description

Definition of the DUNE_CONSTEXPR macro.

Macro Definition Documentation

#define DUNE_CONSTEXPR   constexpr

Set method or expression constexpr if supported by the compiler.

1 #include <dune/common/std/constexpr.hh>

This is a preprocessor define which can be used to mark expressions or functions as constexpr. C++11 introduced constexpr, C++1y will extend constexpr's use cases.

Referenced by Dune::Std::make_index_sequence(), Dune::Std::make_integer_sequence(), Dune::FieldMatrix< T, n, m >::mat_access(), and Dune::FieldVector< K, SIZE >::operator>>().