My Project
move.hpp
Go to the documentation of this file.
1 
28 #ifndef BSL_MOVE_HPP
29 #define BSL_MOVE_HPP
30 
31 #include "remove_reference.hpp"
32 
33 namespace bsl
34 {
35  template<typename V>
36  class fmt;
37 
55  template<typename T>
56  constexpr bsl::remove_reference_t<T> &&
57  move(T &&val) noexcept
58  {
59  return static_cast<bsl::remove_reference_t<T> &&>(val); // PRQA S 4624
60  }
61 
70  template<typename V>
71  constexpr void move(fmt<V> &&val) noexcept = delete;
72 }
73 
74 #endif
constexpr bsl::remove_reference_t< T > && move(T &&val) noexcept
Used to indicate that an object "val" may be "moved from", i.e. allowing the efficient transfer of re...
Definition: move.hpp:57
typename remove_reference< T >::type remove_reference_t
a helper that reduces the verbosity of bsl::remove_reference
Definition: remove_reference.hpp:52