concurrent_vector.h   concurrent_vector.h 
skipping to change at line 709 skipping to change at line 709
} }
//--------------------------------------------------------------------- --- //--------------------------------------------------------------------- ---
// Capacity // Capacity
//--------------------------------------------------------------------- --- //--------------------------------------------------------------------- ---
//! Return size of vector. It may include elements under construction //! Return size of vector. It may include elements under construction
size_type size() const { size_type size() const {
size_type sz = my_early_size, cp = internal_capacity(); size_type sz = my_early_size, cp = internal_capacity();
return cp < sz ? cp : sz; return cp < sz ? cp : sz;
} }
//! Return true if vector is not empty or has elements under constructi on at least. //! Return false if vector is not empty or has elements under construct ion at least.
bool empty() const {return !my_early_size;} bool empty() const {return !my_early_size;}
//! Maximum size to which array can grow without allocating more memory . Concurrent allocations are not included in the value. //! Maximum size to which array can grow without allocating more memory . Concurrent allocations are not included in the value.
size_type capacity() const {return internal_capacity();} size_type capacity() const {return internal_capacity();}
//! Allocate enough space to grow to size n without having to allocate more memory later. //! Allocate enough space to grow to size n without having to allocate more memory later.
/** Like most of the methods provided for STL compatibility, this metho d is *not* thread safe. /** Like most of the methods provided for STL compatibility, this metho d is *not* thread safe.
The capacity afterwards may be bigger than the requested reservatio n. */ The capacity afterwards may be bigger than the requested reservatio n. */
void reserve( size_type n ) { void reserve( size_type n ) {
if( n ) if( n )
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/