Changeset 3060


Ignore:
Timestamp:
Jul 2, 2013, 2:04:54 AM (8 years ago)
Author:
Peter
Message:

add typedefs value_type and size_type to converge towards STL containers.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/utility/Queue.h

    r3058 r3060  
    4848  {
    4949  public:
     50    /// Type of object stored in Queue
     51    typedef T value_type;
     52
     53    /**
     54       An unsigned integral type. \see size(void)
     55    */
     56    typedef typename std::deque<T>::size_type size_type;
     57
    5058    /**
    5159       \return \c true if container's size is zero
     
    97105       \return Number of elements stored in container
    98106     */
    99     size_t size(void) const
     107    size_type size(void) const
    100108    {
    101109      boost::unique_lock<boost::mutex> lock(mutex_);
Note: See TracChangeset for help on using the changeset viewer.