정보
요청한 주제가 아래에 표시됩니다. 그러나 이 주제는 이 라이브러리에 포함되지 않습니다.

<vector>

Defines the container template class vector and several supporting templates.

vector는 선형 시퀀스 내부에 지정된 형식의 요소를 구조화하는 컨테이너입니다. vector는 모든 요소에 대한 빠른 임의 액세스와, 시퀀스로(부터)의 동적 추가 및 제거를 가능하게 합니다. The vector is the preferred container for a sequence when random-access performance is at a premium.

For more information about the class vector, see vector 클래스. For information about the specialization vector<bool>, see vector<bool> 클래스.

namespace std {
template<class Type, class Allocator>
    class vector;
template<class Allocator>
    class vector<bool>;

template<class Allocator>
    struct hash<vector<bool, Allocator> >;

        // TEMPLATE FUNCTIONS
template<class Type, class Allocator>
    bool operator== (
        const vector< Type, Allocator>& _Left,
        const vector< Type, Allocator>& _Right
    );
template<class Type, class Allocator>
    bool operator!= (
        const vector< Type, Allocator>& _Left,
        const vector< Type, Allocator>& _Right
    );
template<class Type, class Allocator>
    bool operator< (
        const vector< Type, Allocator>& _Left,
        const vector< Type, Allocator>& _Right
    );
template<class Type, class Allocator>
    bool operator> (
        const vector< Type, Allocator>& _Left,
        const vector< Type, Allocator>& _Right
    );
template<class Type, class Allocator>
    bool operator<= (
        const vector< Type, Allocator>& _Left,
        const vector< Type, Allocator>& _Right
    );
template<class Type, class Allocator>
    bool operator>= (
        const vector< Type, Allocator>& _Left,
        const vector< Type, Allocator>& _Right
    );
template<class Type, class Allocator>
    void swap (
        vector< Type, Allocator>& _Left,
        vector< Type, Allocator>& _Right
    );
}  // namespace std

형식

The template parameter for the type of data stored in the vector.

Allocator

The template parameter for the stored allocator object responsible for memory allocation and deallocation.

_Left

The first (left) vector in a compare operation

_Right

The second (right) vector in a compare operation.

sxcsf7y7.collapse_all(ko-kr,VS.120).gif연산자

operator! =

Tests if the vector object on the left side of the operator is not equal to the vector object on the right side.

operator<

Tests if the vector object on the left side of the operator is less than the vector object on the right side.

operator<=

Tests if the vector object on the left side of the operator is less than or equal to the vector object on the right side.

operator==

Tests if the vector object on the left side of the operator is equal to the vector object on the right side.

operator>

Tests if the vector object on the left side of the operator is greater than the vector object on the right side.

operator>=

Tests if the vector object on the left side of the operator is greater than or equal to the vector object on the right side.

sxcsf7y7.collapse_all(ko-kr,VS.120).gif클래스

vector Class

A template class of sequence containers that arrange elements of a given type in a linear arrangement and allow fast random access to any element.

sxcsf7y7.collapse_all(ko-kr,VS.120).gif특수화

vector<bool> Class

A full specialization of the template class vector for elements of type bool with an allocator for the underlying type used by the specialization.

헤더: <벡터>

네임 스페이스: std

커뮤니티 추가 항목

표시:
© 2014 Microsoft