DamBreak++ Wave Simulator 0.3
DamBreak++ Simulation Framework
Loading...
Searching...
No Matches
dbpp_FluxAlgorithmFwd.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <utility>
4
6
7// Anthony Williams "C++ Concurrency" Appendix A give an introduction
8// about variadic template and the perfect forwarding feature
9
10namespace dbpp
11{
17 template<typename... Args>
18 void hllFluxAlgorithmFwd(Args&&... args)
19 {
20 // perfect forwarding preserve lvalue/rvalue-ness (forward to right function)
21 hllFluxAlgorithm(std::forward<Args>(args)...);
22 }
23} // End of namespace
Definition DamBreakProb.h:15
void hllFluxAlgorithmFwd(Args &&... args)
forward arguments to another function while preserving their value category (lvalue or rvalue).
Definition dbpp_FluxAlgorithmFwd.hpp:18
void hllFluxAlgorithm(ArrayType &aFF1, ArrayType &aFF2, const ArrayType &aU1, const ArrayType &aU2, ArrayType &&dU1, ArrayType &&dU2) noexcept
Compute numerical flux according to HLL algorithm ()
Definition dbpp_FluxAlgorithmFunctions.hpp:22