c++ - STL allocators and operator new[] -


Is STL implementation that uses the operator new [] as an allocation? On my compiler, Foo :: operator new [] has made me any vector & lt; Foo & gt; could not prevent it from happening ... what kind of behavior is guaranteed?

C ++ standard, section 20.4.1.1. The default allocator allocation () function uses the global operator New:

  Allocate the indicator (size_type n, allocator & lt; void & gt; :: const_pointerhint = 0); 3 Notes: Use :: Operator new (size_t) (18.4.1).  

Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

jquery - SimpleModal Confirm fails to submit form -

php - Multiple Select with Explode: only returns the word "Array" -