名前空間
変種
操作

std::vector<bool>

提供: cppreference.com
< cpp‎ | container

 
 
 
std::vector<bool>
メンバ関数
Original:
Member functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
vector::vector
vector::~vector
vector::operator=
vector::assign
vector::get_allocator
要素アクセスの循環参照を解除するために使用されている
Original:
Element access
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
vector::at
vector::operator[]
vector::front
vector::back
イテレータ
Original:
Iterators
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
vector::begin
vector::cbegin

(C++11)
vector::end
vector::cend

(C++11)
vector::rbegin
vector::crbegin

(C++11)
vector::rend
vector::crend

(C++11)
容量
Original:
Capacity
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
vector::empty
vector::size
vector::max_size
vector::reserve
vector::capacity
修飾子
Original:
Modifiers
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
vector::clear
vector::insert
vector::erase
vector::push_back
vector::pop_back
vector::resize
vector::swap
std::vector<bool> specific
vector<bool>::flip
vector<bool>::swap
 
Defined in header <vector>
template<class Allocator = std::allocator<bool>>
class vector<bool, Allocator>;
std::vector<bool>タイプstd::vectorboolのスペース効率に優れた特殊化したもので.
Original:
std::vector<bool> is a space-efficient specialization of std::vector for the type bool.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
std::vector<bool>はスペースが効率的に行われる方法は、(同様に、それがすべてで最適化されているかどうか)の実装で定義されています。ひとつの潜在的な最適化では、各要素が代わりにバイトサイズboolの単一ビットを占有しているような合体ベクトルの要素が含まれ.
Original:
The manner in which std::vector<bool> is made space efficient (as well as whether it is optimized at all) is implementation defined. One potential optimization involves coalescing vector elements such that each element occupies a single bit instead of a byte-sized bool.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
std::vector<bool>std::vectorと同様に動作しますが、効率的な空間にするために、次のこと
Original:
std::vector<bool> behaves similarly to std::vector, but in order to be space efficient, it:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
  • 必ずしもメモリの単一の連続した​​チャンクにデータを格納していません.
    Original:
    Does not necessarily store its data in a single contiguous chunk of memory.
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.
  • 個々のビットにアクセスする方法としてstd::vector<bool>::referenceを公開してい.
    Original:
    Exposes std::vector<bool>::reference as a method of accessing individual bits.
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.
  • ビット値を構築するstd::allocator_traits::constructを使用していません.
    Original:
    Does not use std::allocator_traits::construct to construct bit values.
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.

目次

[編集] メンバータイプ

メンバー·タイプ
Original:
Member type
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Definition
value_type bool [edit]
allocator_type Allocator [edit]
size_type
実装定義である
Original:
implementation-defined
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
difference_type
実装定義である
Original:
implementation-defined
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
単一のboolへの参照を表すプロキシクラス
Original:
proxy class representing a reference to a single bool
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(クラス)
const_reference bool [edit]
pointer
実装定義である
Original:
implementation-defined
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
const_pointer
実装定義である
Original:
implementation-defined
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
iterator
実装定義である
Original:
implementation-defined
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
const_iterator
実装定義である
Original:
implementation-defined
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
[edit]
reverse_iterator std::reverse_iterator<iterator> [edit]
const_reverse_iterator std::reverse_iterator<const_iterator> [edit]

[編集] メンバ関数

vectorを構築します
Original:
constructs the vector
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(パブリックメンバ関数of std::vector) [edit]
destructs the vector
(パブリックメンバ関数of std::vector) [edit]
コンテナに値を割り当てます
Original:
assigns values to the container
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(パブリックメンバ関数of std::vector) [edit]
コンテナに値を割り当てます
Original:
assigns values to the container
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(パブリックメンバ関数of std::vector) [edit]
関連したアロケータを返す
Original:
returns the associated allocator
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(パブリックメンバ関数of std::vector) [edit]
要素アクセスの循環参照を解除するために使用されている
Original:
Element access
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
指定された要素にアクセスします。境界チェックを行います。
(パブリックメンバ関数of std::vector) [edit]
指定された要素にアクセスします
Original:
access specified element
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(パブリックメンバ関数of std::vector) [edit]
最初の要素にアクセスします
Original:
access the first element
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(パブリックメンバ関数of std::vector) [edit]
末尾の要素にアクセスします
(パブリックメンバ関数of std::vector) [edit]
イテレータ
Original:
Iterators
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
先頭を指すイテレータを返します
(パブリックメンバ関数of std::vector) [edit]
末尾を指すイテレータを返す
Original:
returns an iterator to the end
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(パブリックメンバ関数of std::vector) [edit]
逆イテレータの先頭を返します
(パブリックメンバ関数of std::vector) [edit]
逆イテレータの末尾を返します
(パブリックメンバ関数of std::vector) [edit]
容量
Original:
Capacity
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
コンテナが空であるかどうかをチェックします
(パブリックメンバ関数of std::vector) [edit]
要素数を返します
Original:
returns the number of elements
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(パブリックメンバ関数of std::vector) [edit]
要素の最大数を返します
Original:
returns the maximum possible number of elements
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(パブリックメンバ関数of std::vector) [edit]
ストレージを予約します
(パブリックメンバ関数of std::vector) [edit]
現在割り当てられているストレージに保持することができる要素の数を返します
Original:
returns the number of elements that can be held in currently allocated storage
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(パブリックメンバ関数of std::vector) [edit]
修飾子
Original:
Modifiers
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
全ての要素を削除します
(パブリックメンバ関数of std::vector) [edit]
要素を挿入します
(パブリックメンバ関数of std::vector) [edit]
要素を消去します
(パブリックメンバ関数of std::vector) [edit]
コンテナの末尾に要素を追加します
(パブリックメンバ関数of std::vector) [edit]
最後の要素を削除します
Original:
removes the last element
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(パブリックメンバ関数of std::vector) [edit]
changes the number of elements stored
(パブリックメンバ関数of std::vector) [edit]
コンテナの内容をスワップします
(パブリックメンバ関数of std::vector) [edit]
vector<bool>特定の修飾子
Original:
vector<bool> specific modifiers
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
flips all the bits
(パブリックメンバ関数) [edit]
[静的]
スワップ2std::vector<bool>::referencesを
Original:
swaps two std::vector<bool>::references
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(公共の静的メンバ関数) [edit]

[編集] 非メンバ関数

辞書的にvector内の値を比較します
Original:
lexicographically compares the values in the vector
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(関数テンプレート) [edit]
特殊化されたstd::swapアルゴリズム
(関数テンプレート) [edit]

[編集] ノート

BitSetのサイズはコンパイル時にわかっている場合は、std::bitsetはメンバー関数の豊富なセットを提供している、使用されるかもしれません。また、boost::dynamic_bitsetstd::vector<bool>に代わるものとして存在している.
Original:
If the size of the bitset is known at compile time, std::bitset may be used, which offers a richer set of member functions. In addition, boost::dynamic_bitset exists as an alternative to std::vector<bool>.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.