allocator_traits::allocate 메서드
지정 된 할당자 매개 변수를 사용 하 여 메모리를 할당 하는 정적 메서드.
static pointer allocate(Alloc& al, size_type count);
static pointer allocate(Alloc& al, size_type count,
typename allocator_traits<void>::const_pointer *hint);
매개 변수
al
할당자 개체입니다.count
요소의 할당 수입니다.hint
A const_pointer 는 있습니다 도움이 할당 기 개체 주소를 요청 하기 전에 할당 된 개체를 배치 하 여 저장소에 대 한 요청을 만족 합니다.Null 포인터 없음 참고로 간주 됩니다.
반환 값
각 메서드 포인터에 할당 된 개체를 반환합니다.
첫 번째 정적 메서드를 반환 합니다. al.allocate(count).
두 번째 메서드를 반환 합니다. al.allocate(count, hint)해당 식의 형식이 있는 경우. 그렇지 않으면 al.allocate(count).
요구 사항
헤더: <memory>
네임 스페이스: std