Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::ranges::range_size_t,std::ranges::range_difference_t,std::ranges::range_value_t

      From cppreference.com
      <cpp‎ |ranges
       
       
      Ranges library
      Range adaptors
       
      Defined in header<ranges>
      template<ranges::sized_range R>
      using range_size_t= decltype(ranges::size(std::declval<R&>()));
      (1)(since C++20)
      template<ranges::range R>
      using range_difference_t=std::iter_difference_t<ranges::iterator_t<R>>;
      (2)(since C++20)
      template<ranges::range R>
      using range_value_t=std::iter_value_t<ranges::iterator_t<R>>;
      (3)(since C++20)
      1) Used to obtain the size type of thesized_range typeR.
      2) Used to obtain the difference type of the iterator type of range typeR.
      3) Used to obtain the value type of the iterator type of range typeR.

      [edit]Template parameters

      R - arange type or asized_range type

      [edit]See also

      computes the associated types of an iterator
      (alias template)[edit]
      obtains iterator and sentinel types of a range
      (alias template)[edit]
      obtains reference types of a range
      (alias template)[edit]
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/ranges/range_size_t&oldid=175577"

      [8]ページ先頭

      ©2009-2025 Movatter.jp