Add remove_reference_t
This commit is contained in:
parent
d384cdd397
commit
4a502d9802
@ -196,6 +196,8 @@ using enable_if_t = typename std::enable_if<B, T>::type;
|
||||
template <bool B, class T, class F>
|
||||
using conditional_t = typename std::conditional<B, T, F>::type;
|
||||
template <bool B> using bool_constant = std::integral_constant<bool, B>;
|
||||
template <typename T>
|
||||
using remove_reference_t = typename std::remove_reference<T>::type;
|
||||
|
||||
struct monostate {};
|
||||
|
||||
@ -1311,8 +1313,7 @@ template <typename OutputIt, typename S, typename Char = char_t<S>,
|
||||
internal::is_contiguous_back_insert_iterator<OutputIt>::value)>
|
||||
OutputIt vformat_to(OutputIt out, const S& format_str,
|
||||
basic_format_args<buffer_context<Char>> args) {
|
||||
using container = typename std::remove_reference<decltype(
|
||||
internal::get_container(out))>::type;
|
||||
using container = remove_reference_t<decltype(internal::get_container(out))>;
|
||||
internal::container_buffer<container> buf((internal::get_container(out)));
|
||||
internal::vformat_to(buf, to_string_view(format_str), args);
|
||||
return out;
|
||||
|
@ -3460,7 +3460,7 @@ template <typename It> class is_output_iterator {
|
||||
template <typename U> static const char& test(...);
|
||||
|
||||
typedef decltype(test<It>(typename it_category<It>::type{})) type;
|
||||
typedef typename std::remove_reference<type>::type result;
|
||||
typedef remove_reference_t<type> result;
|
||||
|
||||
public:
|
||||
static const bool value = !std::is_const<result>::value;
|
||||
|
Loading…
Reference in New Issue
Block a user