///@file /// Type Traits (Provide features of later C++ standards) // // Copyright (C) 2017 Thomas Geymayer // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Library General Public // License as published by the Free Software Foundation; either // version 2 of the License, or (at your option) any later version. // // This library is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Library General Public License for more details. // // You should have received a copy of the GNU Library General Public // License along with this library; if not, write to the Free Software // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA #ifndef SIMGEAR_STD_TYPE_TRAITS_HXX_ #define SIMGEAR_STD_TYPE_TRAITS_HXX_ #include #include namespace std { #ifndef HAVE_STD_REMOVE_CV_T template using remove_cv_t = typename remove_cv::type; template using remove_const_t = typename remove_const::type; template using remove_volatile_t = typename remove_volatile::type; template using remove_reference_t = typename remove_reference::type; template< class T > using remove_pointer_t = typename remove_pointer::type; #endif #ifndef HAVE_STD_REMOVE_CVREF_T template struct remove_cvref { using type = remove_cv_t>; }; template using remove_cvref_t = typename remove_cvref::type; #endif #ifndef HAVE_STD_ENABLE_IF_T template using enable_if_t = typename enable_if::type; #endif #ifndef HAVE_STD_BOOL_CONSTANT template using bool_constant = integral_constant; #endif } #endif /* SIMGEAR_STD_TYPE_TRAITS_HXX_ */