// Copyright 2020 The Pigweed Authors // // Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, WITHOUT // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the // License for the specific language governing permissions and limitations under // the License. #pragma once #include #include "pw_polyfill/standard_library/namespace.h" _PW_POLYFILL_BEGIN_NAMESPACE_STD template constexpr remove_reference_t&& move(T&& object) { return (remove_reference_t&&)object; } template constexpr T&& forward(remove_reference_t& value) { return static_cast(value); } template constexpr T&& forward(remove_reference_t&& value) { return static_cast(value); } // Forward declare these classes, which are specialized in other headers. template struct tuple_element; template struct tuple_size; template class integer_sequence; template using index_sequence = integer_sequence; template #if __has_builtin(__make_integer_seq) using make_integer_sequence = __make_integer_seq; #elif __has_builtin(__integer_pack) using make_integer_sequence = integer_sequence; #endif // make_integer_sequence template using make_index_sequence = make_integer_sequence; struct in_place_t { explicit constexpr in_place_t() = default; }; inline constexpr in_place_t in_place{}; _PW_POLYFILL_END_NAMESPACE_STD