[PATCH] Add std::__iterator_category_t

Jonathan Wakely jwakely@redhat.com
Fri Oct 4 10:52:00 GMT 2019


On 04/10/19 06:39 +0200, François Dumont wrote:
>Hi
>
>    May I add this convenient function ? I'll also use it in coming 
>patches.
>
>    Note that I removed a template parameter in 
>__is_random_access_iter in C++11.
>
>
>    * include/bits/stl_iterator_base_types.h (__iterator_category_t): 
>Define
>    for C++11.
>    (__is_random_access_iter): Adapt to use latter.
>    (_RequireInputIte): Likewise and use __enable_if_t.
>
>    Tested under Linux x86_64.

This is a nice utility, thanks. OK for trunk.




More information about the Libstdc++ mailing list