Re: [Boost-bugs] [Boost C++ Libraries] #3768: Incomplete documentation for type_traits::extent and type_traits::rank

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #3768: Incomplete documentation for type_traits::extent and type_traits::rank
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-12-15 10:11:00


#3768: Incomplete documentation for type_traits::extent and type_traits::rank
------------------------------------------------+---------------------------
 Reporter: Edward Diener <eld@…> | Owner: johnmaddock
     Type: Bugs | Status: new
Milestone: Boost 1.42.0 | Component: type_traits
  Version: Boost 1.41.0 | Severity: Cosmetic
 Keywords: extent rank |
------------------------------------------------+---------------------------

Comment(by anonymous):

 So what would you suggest?

>Inherits: Class template extent inherits from
 integral_constant<std::size_t, >EXTENT(T,N)>, where EXTENT(T,N) is the
 number of elements in the N'th array dimention >of type T.
>If T is not an array type, or if N > rank<T>::value, or if the N'th array
 bound is >incomplete, then EXTENT(T,N) is zero."
>
>This does not explain what this type_traits is about.

 Really? Concise maybe, but how does "where EXTENT(T,N) is the number of
 elements in the N'th array dimention of type T" not precisely describe the
 traits behaviour?

 John.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/3768#comment:1>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:02 UTC