- This means that two instances of the same allocator are always equal, which in turn means that both allocators can allocate and deallocate each other's memory.
- If two instances of the same allocator can allocate and deallocate each other's memory.
- Yes.
- Yes.
- When a container is copied, its allocator is also copied.
- It provides the container with the ability to create a copy of the allocator it was provided for a different type.
- For std::list, n ==1; for std::vector, n can be any number.
Germany
Slovakia
Canada
Brazil
Singapore
Hungary
Philippines
Mexico
Thailand
Ukraine
Luxembourg
Estonia
Lithuania
Norway
Chile
United States
Great Britain
India
Spain
South Korea
Ecuador
Colombia
Taiwan
Switzerland
Indonesia
Cyprus
Denmark
Finland
Poland
Malta
Czechia
New Zealand
Austria
Turkey
France
Sweden
Italy
Egypt
Belgium
Portugal
Slovenia
Ireland
Romania
Greece
Argentina
Malaysia
South Africa
Netherlands
Bulgaria
Latvia
Australia
Japan
Russia