C++ STL map container
-
STL map 의 정리C++ 2014. 2. 20. 22:51
Map은 4개의 template parameter가 필요하다. Key Type Data Value Type Key compare type Data allocation type explicit map (const key_compare& comp = key_compare(), const allocator_type& alloc = allocator_type()); template map (InputIterator first, InputIterator last, const key_compare& comp = key_compare(), const allocator_type& alloc = allocator_type()); map (const map& x); Compare type을 지정하기 위해서는 operato..