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.