, 나는 볼이 회원 :
value_type
, pointer
, const_pointer
, difference_type
size_type
, 및 rebind
모든 사용되지 않습니다 const_reference
, reference
.
address
, max_size
, construct
, 또는 destroy
:왜 std :: allocator가 C++ 17에서 멤버 유형/함수를 잃었습니까? <a href="http://en.cppreference.com/w/cpp/memory/allocator" rel="noreferrer">std::allocator</a> 보면서
소산은 더 이상 회원이 없습니다.
왜 이런 일이 발생 했습니까? polymophic 할당 자와 관련이 있습니까?
첫 번째 멤버 집합은 할당자가 아니라 컨테이너에 실제로 의미가있는 것처럼 보입니다. 주소()를 대체 할 수있는'std :: addressof'가 있다고 생각합니다. 어쨌든 max_size가 필요한 사람; 나머지는 배치 새로운/명시 적 소멸자 호출로 대체 할 수 있어야합니다. –
누락 된 부분을 채울 수있는 [allocator_traits'] (http://en.cppreference.com/w/cpp/memory/allocator_traits)가 있습니다. –