dune-vtk 2.12
Loading...
Searching...
No Matches
arguments.hh
Go to the documentation of this file.
1#pragma once
2
3#include <type_traits>
4#include <utility>
5
6namespace Dune::Vtk
7{
10
26 template <class... T, class Arg0, class... Args>
27 decltype(auto) getArg(Arg0&& arg0, Args&&... args)
28 {
29 using A = std::decay_t<Arg0>;
30 if constexpr ((std::is_same_v<A,T> ||...))
31 return std::forward<Arg0>(arg0);
32 else
33 return getArg<T...>(std::forward<Args>(args)...);
34 }
35
36} // end namespace Dune::Vtk
Definition writer.hh:16
decltype(auto) getArg(Arg0 &&arg0, Args &&... args)
Definition arguments.hh:27