C++ STL: Can arrays be used transparently with STL functions?

后端 未结 11 1336
半阙折子戏
半阙折子戏 2020-12-15 17:07

I was under the assumption that STL functions could be used only with STL data containers (like vector) until I saw this piece of code:

#include         


        
11条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-15 17:53

    The introduction to boost::array (a simple templated wrapper for conventional arrays, which also defines STL-compatible iterator types and begin()/end() etc) contains some interesting discussion of their degree of compatability with STL.

提交回复
热议问题