My Project
forward.hpp
Go to the documentation of this file.
1 
28 #ifndef BSL_FORWARD_HPP
29 #define BSL_FORWARD_HPP
30 
31 #include "remove_reference.hpp"
32 
33 namespace bsl
34 {
54  template<typename T>
55  constexpr T &&
57  {
58  return static_cast<T &&>(val); // PRQA S 4624, 3100
59  }
60 
80  template<typename T>
81  constexpr T &&
83  {
84  return static_cast<T &&>(val); // PRQA S 4624
85  }
86 }
87 
88 #endif
typename remove_reference< T >::type remove_reference_t
a helper that reduces the verbosity of bsl::remove_reference
Definition: remove_reference.hpp:52
constexpr T && forward(bsl::remove_reference_t< T > &val) noexcept
When "val" is a forwarding reference (a function argument that is declared as an rvalue reference to ...
Definition: forward.hpp:56