Movatterモバイル変換


[0]ホーム

URL:


cppreference.com
Namespaces
Variants
    Actions

      std::common_type<std::basic_const_iterator>

      From cppreference.com
      <cpp‎ |iterator‎ |basic const iterator
       
       
      Iterator library
      Iterator concepts
      Iterator primitives
      Algorithm concepts and utilities
      Indirect callable concepts
      Common algorithm requirements
      (C++20)
      (C++20)
      (C++20)
      Utilities
      (C++20)
      Iterator adaptors
      Range access
      (C++11)(C++14)
      (C++14)(C++14)  
      (C++11)(C++14)
      (C++14)(C++14)  
      (C++17)(C++20)
      (C++17)
      (C++17)
       
       
      Defined in header<iterator>
      template<class T,std::common_with<T> U>

          requiresstd::input_iterator<std::common_type_t<T, U>>

      struct common_type<std::basic_const_iterator<T>, U>;
      (1)(since C++23)
      template<class T,std::common_with<T> U>

          requiresstd::input_iterator<std::common_type_t<T, U>>

      struct common_type<U,std::basic_const_iterator<T>>;
      (2)(since C++23)
      template<class T,std::common_with<T> U>

          requiresstd::input_iterator<std::common_type_t<T, U>>
      struct common_type<std::basic_const_iterator<T>,

                         std::basic_const_iterator<U>>;
      (3)(since C++23)

      The common type of twobasic_const_iterators or abasic_const_iterator and another iterator type is abasic_const_iterator of the common underlying type.

      The common type is defined only ifT andU share a common type which modelsinput_iterator.

      [edit]Member types

      Member type Definition
      typestd::basic_const_iterator<std::common_type_t<T, U>>(1-3)

      [edit]Example

      This section is incomplete
      Reason: no example

      [edit]See also

      determines the common type of a group of types
      (class template)[edit]
      Retrieved from "https://en.cppreference.com/mwiki/index.php?title=cpp/iterator/basic_const_iterator/common_type&oldid=167398"

      [8]ページ先頭

      ©2009-2025 Movatter.jp