Gromacs  2021.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
template_mp.h File Reference
#include <cassert>
#include <cstddef>
#include <utility>
#include "gromacs/compat/mp11.h"
+ Include dependency graph for template_mp.h:
+ This graph shows which files directly or indirectly include this file:

Description

Declares utilities for template metaprogramming.

Author
Roland Schulz rolan.nosp@m.d.sc.nosp@m.hulz@.nosp@m.inte.nosp@m.l.com

Functions

template<class Function >
auto gmx::dispatchTemplatedFunction (Function &&f)
 
template<class Function , class Enum , class... Enums>
auto gmx::dispatchTemplatedFunction (Function &&f, Enum e, Enums...es)
 Helper function to select appropriate template based on runtime values. More...