Function set_capacity

Synopsis

#include <include/EASTL/bitvector.h>

void set_capacity(size_type n=npos)

Description

No description yet.

Source

Lines 833-840 in include/EASTL/bitvector.h. Line 277 in include/EASTL/bitvector.h.

template <typename Allocator, typename Element, typename Container>
void bitvector<Allocator, Element, Container>::set_capacity(size_type n)
{
    if(n == npos)
        mContainer.set_capacity(npos);
    else
        mContainer.set_capacity((n + kBitCount - 1) / kBitCount);
}





Add Discussion as Guest

Log in