摘要: ``` cpp static const int _stl_num_primes = 28; template> class hashtable; ministl::vector prime_list = { 53, 97, 193, 389, 769, 1543, 3079, 6151, 12289, 24593, 49157, 98317, 196613, 393241, ... 阅读全文
posted @ 2018-04-18 20:04 joeylee97 阅读(276) 评论(0) 推荐(0) 编辑
摘要: tuple Class template std::tuple is a fixed size collection of heterogeneous values. It is a generalization of std::pair. 可以用来在bind中存储函数指针和参数 实现思路 不定参数 阅读全文
posted @ 2018-04-18 20:03 joeylee97 阅读(313) 评论(0) 推荐(0) 编辑
摘要: any class any; (since C++17) The class any describes a type safe container for single values of any type. (1) An object of class any stores an instanc 阅读全文
posted @ 2018-04-18 20:03 joeylee97 阅读(485) 评论(0) 推荐(1) 编辑
摘要: ``` cpp class string { public: typedef size_t size_type; typedef char iterator; typedef char value_type; private: char start, end_of_storage, End; std 阅读全文
posted @ 2018-04-18 20:03 joeylee97 阅读(263) 评论(0) 推荐(0) 编辑