Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-common
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Timo Koch
dune-common
Commits
174f56a2
Commit
174f56a2
authored
11 years ago
by
Christoph Grüninger
Browse files
Options
Downloads
Patches
Plain Diff
[doxygen] Add documentation to constexpr.hh.
parent
4c023a3d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dune/common/std/constexpr.hh
+18
-1
18 additions, 1 deletion
dune/common/std/constexpr.hh
with
18 additions
and
1 deletion
dune/common/std/constexpr.hh
+
18
−
1
View file @
174f56a2
#ifndef DUNE_COMMON_STD_CONSTEXPR_HH
#define DUNE_COMMON_STD_CONSTEXPR_HH
#if HAVE_CONSTEXPR
/**
* \file
* \brief Definition of the DUNE_CONSTEXPR macro
*/
#if HAVE_CONSTEXPR || defined(DOXYGEN)
/**
* \brief Set method or expression constexpr if supported by the compiler.
* \code
#include <dune/common/std/constexpr.hh>
* \endcode
*
* 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.
*/
#define DUNE_CONSTEXPR constexpr
#else // #if HAVE_CONSTEXPR
#define DUNE_CONSTEXPR
#endif // #else // #if HAVE_CONSTEXPR
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment