![](https://img-blog.csdnimg.cn/20210415204349532.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
Boost/STL
关于Boost和STL相关的一些知识点
xupeng1644
道阻且长,行则将至!
展开
-
Linux下编译Boost
tar -zxvf hiredis-1.0.0.tar.gzcd hiredis-1.0.0cmake .cmake --build . (或者使用make)make install DESTDIR=安装目录编译安装完成后,在安装目录中,原创 2022-01-24 11:11:26 · 1190 阅读 · 0 评论 -
STL 关联容器的lower_bound()和upper_bound()
以std::map为例,lower_bounder()返回的迭代器指向第一个[大于等于]目标值的元素(以升序为例),upper_bound()返回的迭代器指向第一个 [大于]目标值的元素(以升序为例)。直接使用www.cplusplus.com中的例子:#include <iostream>#include <map>int main (){ std::...原创 2020-05-07 14:27:20 · 1677 阅读 · 0 评论 -
STL 容器迭代器失效总结(超级详细)
本文只总结常见的序列容器(vector、deque、list)和关联容器(set、multiset、map、multimap)的迭代器失效问题。原迭代器指的是进行操作之前保存的迭代器,包括begin()、end()以及其他位置的迭代器。vector:成员函数push_back():会在容器末尾添加一个元素。如果容器有剩余空间(capacity() > size()),则直接添加新元素到...原创 2020-03-16 19:29:28 · 4918 阅读 · 0 评论 -
STL SGI STL源码地址
SGI源码地址原创 2019-10-30 10:45:55 · 2451 阅读 · 0 评论 -
STL STL的不同实现版本
HP STLHP STL是所有其它STL实现版本的根源。它是STL之父Alexander Stepanov在惠普的Palo Alto实验室工作时,和Meng Lee共同完成的,是第一个STL的实现版本(参见1.2节)。这个STL是开放源码的,所以它允许任何人免费使用、复制、修改、发布和销售该软件和相关文档,前提是必须在所有相关文件中加入HP STL的版本信息和授权信息。现在已经很少直接使用这个版...转载 2019-10-22 12:48:17 · 1704 阅读 · 0 评论 -
doc/html/boost_asio/example/porthopper/server.cpp
//// server.cpp// ~~~~~~~~~~//// Copyright (c) 2003-2010 Christopher M. Kohlhoff (chris at kohlhoff dot com)//// Distributed under the Boost Software License, Version 1.0. (See accompanying// f...转载 2020-04-09 22:19:34 · 1322 阅读 · 0 评论 -
doc/html/boost_asio/example/porthopper/client.cpp
//// client.cpp// ~~~~~~~~~~//// Copyright (c) 2003-2010 Christopher M. Kohlhoff (chris at kohlhoff dot com)//// Distributed under the Boost Software License, Version 1.0. (See accompanying// f...转载 2020-04-09 22:12:30 · 1417 阅读 · 0 评论 -
doc/html/boost_asio/example/porthopper/protocol.hpp
//// protocol.hpp// ~~~~~~~~~~~~//// Copyright (c) 2003-2010 Christopher M. Kohlhoff (chris at kohlhoff dot com)//// Distributed under the Boost Software License, Version 1.0. (See accompanying...转载 2020-04-09 22:11:38 · 1319 阅读 · 0 评论 -
面试之Boost
Boost常用的库很多都已经被包含到C++11、C++14或者C++17中了。这里还是按照Boost程序库完全开发指针的目录结构进行总结。常用功能库:关于时间的 chrono库, 已被加入C++11标准。关于随机数的random库,已被加入C++11标准。关于正则表达式的regex库,已被加入C++11标准。内存管理:包括智能指针scoped_ptr, 对于C++11中的uniqu...原创 2020-04-09 12:57:31 · 3658 阅读 · 0 评论 -
doc/html/boost_asio/example/http/server4/server.hpp
//// server.hpp// ~~~~~~~~~~//// Copyright (c) 2003-2010 Christopher M. Kohlhoff (chris at kohlhoff dot com)//// Distributed under the Boost Software License, Version 1.0. (See accompanying// f...转载 2020-04-08 09:02:14 · 1400 阅读 · 0 评论 -
doc/html/boost_asio/example/http/server4/unyield.hpp
//// unyield.hpp// ~~~~~~~~~~~//// Copyright (c) 2003-2010 Christopher M. Kohlhoff (chris at kohlhoff dot com)//// Distributed under the Boost Software License, Version 1.0. (See accompanying//...转载 2020-04-08 09:01:43 · 1359 阅读 · 0 评论 -
doc/html/boost_asio/example/http/server4/win_main.cpp
//// win_main.cpp// ~~~~~~~~~~~~//// Copyright (c) 2003-2010 Christopher M. Kohlhoff (chris at kohlhoff dot com)//// Distributed under the Boost Software License, Version 1.0. (See accompanying...转载 2020-04-08 09:01:13 · 1366 阅读 · 0 评论 -
doc/html/boost_asio/example/http/server4/yield.hpp
//// yield.hpp// ~~~~~~~~~//// Copyright (c) 2003-2010 Christopher M. Kohlhoff (chris at kohlhoff dot com)//// Distributed under the Boost Software License, Version 1.0. (See accompanying// fil...转载 2020-04-08 09:00:45 · 1199 阅读 · 0 评论 -
doc/html/boost_asio/example/http/server4/coroutine.hpp
//// coroutine.hpp// ~~~~~~~~~~~~~//// Copyright (c) 2003-2010 Christopher M. Kohlhoff (chris at kohlhoff dot com)//// Distributed under the Boost Software License, Version 1.0. (See accompanyin...转载 2020-04-08 09:00:11 · 1232 阅读 · 0 评论 -
doc/html/boost_asio/example/http/server3/win_main.cpp
//// win_main.cpp// ~~~~~~~~~~~~//// Copyright (c) 2003-2010 Christopher M. Kohlhoff (chris at kohlhoff dot com)//// Distributed under the Boost Software License, Version 1.0. (See accompanying...转载 2020-04-08 08:54:38 · 1363 阅读 · 0 评论 -
doc/html/boost_asio/example/http/server3/server.hpp
//// server.hpp// ~~~~~~~~~~//// Copyright (c) 2003-2010 Christopher M. Kohlhoff (chris at kohlhoff dot com)//// Distributed under the Boost Software License, Version 1.0. (See accompanying// f...转载 2020-04-08 08:54:07 · 1295 阅读 · 0 评论 -
doc/html/boost_asio/example/http/server3/server.cpp
//// server.cpp// ~~~~~~~~~~//// Copyright (c) 2003-2010 Christopher M. Kohlhoff (chris at kohlhoff dot com)//// Distributed under the Boost Software License, Version 1.0. (See accompanying// f...转载 2020-04-08 08:53:16 · 1384 阅读 · 0 评论 -
doc/html/boost_asio/example/http/server3/connection.hpp
//// connection.hpp// ~~~~~~~~~~~~~~//// Copyright (c) 2003-2010 Christopher M. Kohlhoff (chris at kohlhoff dot com)//// Distributed under the Boost Software License, Version 1.0. (See accompany...转载 2020-04-08 08:50:50 · 1055 阅读 · 0 评论 -
doc/html/boost_asio/example/http/server3/connection.cpp
//// connection.cpp// ~~~~~~~~~~~~~~//// Copyright (c) 2003-2010 Christopher M. Kohlhoff (chris at kohlhoff dot com)//// Distributed under the Boost Software License, Version 1.0. (See accompany...转载 2020-04-08 08:50:00 · 1376 阅读 · 0 评论 -
doc/html/boost_asio/example/http/client/async_client.cpp
//// async_client.cpp// ~~~~~~~~~~~~~~~~//// Copyright (c) 2003-2010 Christopher M. Kohlhoff (chris at kohlhoff dot com)//// Distributed under the Boost Software License, Version 1.0. (See accom...转载 2020-04-07 14:34:17 · 1418 阅读 · 0 评论 -
doc/html/boost_asio/example/http/client/sync_client.cpp
//// sync_client.cpp// ~~~~~~~~~~~~~~~//// Copyright (c) 2003-2010 Christopher M. Kohlhoff (chris at kohlhoff dot com)//// Distributed under the Boost Software License, Version 1.0. (See accompa...转载 2020-04-07 14:33:46 · 1369 阅读 · 0 评论 -
doc/html/boost_asio/example/http/server2/win_main.cpp
//// win_main.cpp// ~~~~~~~~~~~~//// Copyright (c) 2003-2010 Christopher M. Kohlhoff (chris at kohlhoff dot com)//// Distributed under the Boost Software License, Version 1.0. (See accompanying...转载 2020-04-07 14:30:24 · 1362 阅读 · 0 评论 -
doc/html/boost_asio/example/http/server2/server.hpp
//// server.hpp// ~~~~~~~~~~//// Copyright (c) 2003-2010 Christopher M. Kohlhoff (chris at kohlhoff dot com)//// Distributed under the Boost Software License, Version 1.0. (See accompanying// f...转载 2020-04-07 14:29:53 · 1361 阅读 · 0 评论 -
doc/html/boost_asio/example/http/server2/server.cpp
//// server.cpp// ~~~~~~~~~~//// Copyright (c) 2003-2010 Christopher M. Kohlhoff (chris at kohlhoff dot com)//// Distributed under the Boost Software License, Version 1.0. (See accompanying// f...转载 2020-04-07 14:29:19 · 1374 阅读 · 0 评论 -
doc/html/boost_asio/example/http/server2/request_parser.hpp
//// request_parser.hpp// ~~~~~~~~~~~~~~~~~~//// Copyright (c) 2003-2010 Christopher M. Kohlhoff (chris at kohlhoff dot com)//// Distributed under the Boost Software License, Version 1.0. (See a...转载 2020-04-07 14:28:47 · 1331 阅读 · 0 评论 -
doc/html/boost_asio/example/http/server2/request_parser.cpp
//// request_parser.cpp// ~~~~~~~~~~~~~~~~~~//// Copyright (c) 2003-2010 Christopher M. Kohlhoff (chris at kohlhoff dot com)//// Distributed under the Boost Software License, Version 1.0. (See a...转载 2020-04-07 14:28:16 · 1377 阅读 · 0 评论 -
doc/html/boost_asio/example/http/server2/request_handler.hpp
//// request_handler.hpp// ~~~~~~~~~~~~~~~~~~~//// Copyright (c) 2003-2010 Christopher M. Kohlhoff (chris at kohlhoff dot com)//// Distributed under the Boost Software License, Version 1.0. (See...转载 2020-04-07 14:27:46 · 1319 阅读 · 0 评论 -
doc/html/boost_asio/example/http/server2/request_handler.cpp
//// request_handler.cpp// ~~~~~~~~~~~~~~~~~~~//// Copyright (c) 2003-2010 Christopher M. Kohlhoff (chris at kohlhoff dot com)//// Distributed under the Boost Software License, Version 1.0. (See...转载 2020-04-07 14:27:03 · 1330 阅读 · 0 评论 -
doc/html/boost_asio/example/http/server2/request.hpp
//// request.hpp// ~~~~~~~~~~~//// Copyright (c) 2003-2010 Christopher M. Kohlhoff (chris at kohlhoff dot com)//// Distributed under the Boost Software License, Version 1.0. (See accompanying//...转载 2020-04-07 14:26:32 · 1338 阅读 · 0 评论 -
doc/html/boost_asio/example/http/server2/reply.hpp
//// reply.hpp// ~~~~~~~~~//// Copyright (c) 2003-2010 Christopher M. Kohlhoff (chris at kohlhoff dot com)//// Distributed under the Boost Software License, Version 1.0. (See accompanying// fil...转载 2020-04-06 20:45:45 · 1391 阅读 · 0 评论 -
doc/html/boost_asio/example/http/server2/reply.cpp
//// reply.cpp// ~~~~~~~~~//// Copyright (c) 2003-2010 Christopher M. Kohlhoff (chris at kohlhoff dot com)//// Distributed under the Boost Software License, Version 1.0. (See accompanying// fil...转载 2020-04-06 20:45:16 · 1308 阅读 · 0 评论 -
doc/html/boost_asio/example/http/server2/posix_main.cpp
/// posix_main.cpp// ~~~~~~~~~~~~~~//// Copyright (c) 2003-2010 Christopher M. Kohlhoff (chris at kohlhoff dot com)//// Distributed under the Boost Software License, Version 1.0. (See accompanyi...转载 2020-04-06 20:44:41 · 1366 阅读 · 0 评论 -
doc/html/boost_asio/example/http/server2/mime_types.hpp
//// mime_types.hpp// ~~~~~~~~~~~~~~//// Copyright (c) 2003-2010 Christopher M. Kohlhoff (chris at kohlhoff dot com)//// Distributed under the Boost Software License, Version 1.0. (See accompany...转载 2020-04-06 20:44:06 · 1332 阅读 · 0 评论 -
doc/html/boost_asio/example/http/server2/mime_types.cpp
//// mime_types.cpp// ~~~~~~~~~~~~~~//// Copyright (c) 2003-2010 Christopher M. Kohlhoff (chris at kohlhoff dot com)//// Distributed under the Boost Software License, Version 1.0. (See accompany...转载 2020-04-06 20:43:39 · 1346 阅读 · 0 评论 -
doc/html/boost_asio/example/http/server2/io_service_pool.hpp
//// io_service_pool.hpp// ~~~~~~~~~~~~~~~~~~~//// Copyright (c) 2003-2010 Christopher M. Kohlhoff (chris at kohlhoff dot com)//// Distributed under the Boost Software License, Version 1.0. (See...转载 2020-04-06 20:43:04 · 1392 阅读 · 0 评论 -
doc/html/boost_asio/example/http/server2/io_service_pool.cpp
//// io_service_pool.cpp// ~~~~~~~~~~~~~~~~~~~//// Copyright (c) 2003-2010 Christopher M. Kohlhoff (chris at kohlhoff dot com)//// Distributed under the Boost Software License, Version 1.0. (See...转载 2020-04-06 20:42:31 · 1395 阅读 · 0 评论 -
doc/html/boost_asio/example/http/server2/header.hpp
//// header.hpp// ~~~~~~~~~~//// Copyright (c) 2003-2010 Christopher M. Kohlhoff (chris at kohlhoff dot com)//// Distributed under the Boost Software License, Version 1.0. (See accompanying// f...转载 2020-04-06 20:42:01 · 1392 阅读 · 0 评论 -
doc/html/boost_asio/example/http/server2/connection.hpp
//// connection.hpp// ~~~~~~~~~~~~~~//// Copyright (c) 2003-2010 Christopher M. Kohlhoff (chris at kohlhoff dot com)//// Distributed under the Boost Software License, Version 1.0. (See accompany...转载 2020-04-06 20:41:28 · 1330 阅读 · 0 评论 -
doc/html/boost_asio/example/http/server2/connection.cpp
//// connection.cpp// ~~~~~~~~~~~~~~//// Copyright (c) 2003-2010 Christopher M. Kohlhoff (chris at kohlhoff dot com)//// Distributed under the Boost Software License, Version 1.0. (See accompany...转载 2020-04-06 20:40:39 · 1406 阅读 · 0 评论 -
doc/html/boost_asio/example/ssl/server.cpp
//// server.cpp// ~~~~~~~~~~//// Copyright (c) 2003-2010 Christopher M. Kohlhoff (chris at kohlhoff dot com)//// Distributed under the Boost Software License, Version 1.0. (See accompanying// f...转载 2020-04-05 09:13:15 · 1487 阅读 · 0 评论