|
||||
File indexing completed on 2025-01-18 09:54:05
0001 0002 // Copyright Catch2 Authors 0003 // Distributed under the Boost Software License, Version 1.0. 0004 // (See accompanying file LICENSE.txt or copy at 0005 // https://www.boost.org/LICENSE_1_0.txt) 0006 0007 // SPDX-License-Identifier: BSL-1.0 0008 #ifndef CATCH_MOVE_AND_FORWARD_HPP_INCLUDED 0009 #define CATCH_MOVE_AND_FORWARD_HPP_INCLUDED 0010 0011 #include <type_traits> 0012 0013 //! Replacement for std::move with better compile time performance 0014 #define CATCH_MOVE(...) static_cast<std::remove_reference_t<decltype(__VA_ARGS__)>&&>(__VA_ARGS__) 0015 0016 //! Replacement for std::forward with better compile time performance 0017 #define CATCH_FORWARD(...) static_cast<decltype(__VA_ARGS__)&&>(__VA_ARGS__) 0018 0019 #endif // CATCH_MOVE_AND_FORWARD_HPP_INCLUDED
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |