vector< bool >


A specialization of vector< T > optimized for boolean manipulation. The interface for vector< bool > is the same as its generic counterpart, with the addition of the methods described below. Refer to vector< T > for the remaining interface definition.

Library

Standards<ToolKit>

Declaration


#include <vector>

template < class Allocator >
class vector< bool, Allocator >

Additional Interface

flip
void flip()
Inverts the vector value.
swap
static void swap( reference x , reference y )
Exchanges the boolean references x and y .


Copyright©1994-2026 Recursion Software LLC
All Rights Reserved - For use by licensed users only.