boost asio

Discover boost asio, include the articles, news, trends, analysis and practical advice about boost asio on alibabacloud.com

Boost library in Windows compilation and configuration (VS2010)

C + + has a powerful boost, and there are a lot of features that are not supported by the C + + standard library. Look at the boost of those powerful functional templates how can not be tempted! Let's take a look at how to use the Boost library under VS2010.System: Windows7Development environment: Visual Studio 10Boost version: Boost_1_55_0(1)

Getting started with boost. Python -- embedding python in C ++

In boost. Python, python is embedded in the C ++ section, and Chinese documents found on the Internet seem to be outdated, Such as boost. Python Study Notes http://edyfox.codecarver.org/html/boost_python.html InBoost. Python version 2To provide more concise and easy-to-use interfaces. Replace the originalPython c Conversion API, such as pyrun_simplestring. There are actually two parts about Pytho

Boost smart pointer -- scoped_ptr

Boost smart pointer -- scoped_ptr Source: http://www.cnblogs.com/TianFang/archive/2008/09/15/1291050.html Boost: scoped_ptrAndSTD: auto_ptrSimilarly, it is a simple smart pointer that can ensure that the object is automatically released after it leaves the scope. BelowCodeDemonstrate the basic application of the pointer: # Include # Include # Include ClassImplementation{Public:~ Im

Boost::bind ()

From:http://greyforest.blog.sohu.com/152084205.html Bind-boost Header file: boost/bind.hpp Bind is a set of overloaded function templates.Used to bind certain parameters to a function (or function object).The return value of BIND is a function object. Its source file is too long. I can't see it anymore. Here is only a note of its usage: 9.1 For ordinary functions If there is a function fun () as follows:voi

Object-Oriented programming style & amp; based on object programming (boost: bind/function)

Object-Oriented programming style Object-based programming (boost: bind/function)"Muduo is a modern C ++ network library. There are two differences between APIs in modern and ancient times. One is Event Callback, and the other is resource management. An API is designed for a network library to define an interface (abstract base class) that contains the processing functions corresponding to several network events. Your code inherits this interface, wh

Boost smart pointer-shared_ptr

Although boost: scoped_ptr is easy to use, its ability to share ownership is greatly limited, while boost: shared_ptr can solve this limitation. As the name implies, boost: shared_ptr is a smart pointer that can share ownership. First, let's look at its basic usage through an example: #include The output result of this program is as follows: The sample now has

Boost: Format user guide.

Try to use sprintf as little as possible, and do not know when the program crashes. Http://www.cnblogs.com/WuErPIng/archive/2005/04/21/142308.aspxTry boost format 1. Boost: Format Basic Syntax: boost: Format (format-string) % arg1 % arg2 %... % argnThe following example shows how to use boost: Format// Method 1 Cout

Try boost format

Try boost format Http://www.cnblogs.com/wuerping/archive/2005/04/21/142308.html Overview STD: string is a good stuff, but in actual use, basically encounter unpleasant things in every program: format the string. MeEven for this reason, we can introduce platform-related MFC, ATL, and other heavyweight frameworks that do not need to be used in the project to easily format strings.. I tried to extract the format function of ATL: cstring and use it. Howe

Smart pointers in boost (RPM)

This article mainly introduces the use of smart pointers in boost. (Transferred from: http://www.cnblogs.com/sld666666/archive/2010/12/16/1908265.html)Memory management is a tedious issue, with two implementations in C + +: Garbage collection mechanism and smart pointers. Garbage collection mechanism because of performance and other reasons are not respected by C + +, and smart pointers are considered to solve the C + + memory problem of the best solu

How to use boost thread

First , create a thread Creating Threads Boost::thread mythread (Threadfun); Note that the parameter can be a function object or a function pointer. And this function has no arguments and returns the void type . When a thread execution completes, the child thread disappears. Note that this thread object will not disappear, it is still a C + + object that is still in its lifetime. Similarly, when a pointer to a thread object on a heap calls delete, th

Boost Lock Usage Summary

Overview of Boost Locks: The mutex class and lock class are provided in the Boost library, and can be easily constructed by combining read-write and mutex locks. For example, if the shared resource is an automatically locked room, the mutex is the key, the key must be taken into the room, and the key should be left out of the room. This corresponds to the lock of the mutex (the key) and the unlock (the key)

Boost bind usage Guide

Bind-boost Header file: boost/bind.hpp Bind is a set of overloaded function templates.Used to bind certain parameters to a function (or function object).The return value of BIND is a function object. Its source file is too long. Can't look down. Here, just write down its usage: 9.1 For normal functions If there is a function fun () as follows:void Fun (int x, int y) {cout }Now let's see how to bind paramete

Boost::any usage

Boost::any can store any type of C + + type, or it can be a user-defined type. Very convenient, can be very convenient to determine the type of data in the process of operation, so as to carry out related operations.Function Prototypes://In header: classAny { Public: //construct/copy/destructany (); Any (ConstAny ); TemplateConstValueType ); anyoperator=(ConstAny ); Templateoperator=(ConstValueType ); ~any (); //modifiersAny Swap (any ); //Queries

12 Architecture Research and main usage Summary of boost log Library

I have done a lot of boost log examples, now To sum up, the latest code in my open source project: https://gitlab.com/mystudy/boost_log The architecture diagram of the boost log library is as follows: The following summarizes the knowledge related to this architecture:1. How to obtain the Logging core #include 2. How to install the Sink object Multiple sinks can be installed on one core. The following C

How to compile boost on Linux

This blog (http://blog.csdn.net/livelylittlefish) Post author (three two one @ fish) related research, learning content made notes, welcome to the majority of friends correct! How to compile boost on Linux Boost compilation uses the bjam (boost JAM) tool specially developed for Boost instead of making, which has bec

Use the boost: iostreams library to compress and decompress data

Use the boost: iostreams library to compress and decompress data.-Bo Cheng's blog-blog channel-csdn. net Use the boost: iostreams library to compress and decompress data Category: boost 92 people reading Comment (0) Favorites Report Boostboostiostreams In today's project, we are going to use gzip to compress the data and find the

#include <boost/shared_ptr.hpp>

Shared pointersThis smart pointer is named BOOST::SHARED_PTR, defined in BOOST/SHARED_PTR.HPP. The smart pointer boost::shared_ptr is basically similar to boost::scoped_ptr. The key difference is that BOOST::SHARED_PTR does not necessarily have to monopolize an object. It ca

Ubuntu 15.04 clang++ 3.6 compilation Boost 1.59/1.55

Ubuntu 15.04 can already be installed directly through the Apt-get Insall clang 3.6, and the pre-installed GCC version is 4.9.2. These installation procedures are described here.First download the boost source code[Plain]View PlainCopyprint? Wget-o boost.1.59.tar.bz2 Http://sourceforge.net/projects/boost/files/latest/download?source=files Extract[Pl

Boost. Bind usage

From http://cunsh.ycool.com/post.1946109.html Chapter 2 bind-boost Header file: boost/Bind. HPP BIND is a set of overloaded function templates.Used to bind certain parameters to a function (or function object.The return value of BIND is a function object. Its source file is too long. You can't see it. Here we only write down its usage: 9.1 for common functions Assume that the function fun () is as follows:V

Boost Learning Series 4-event processing (II)

A synthesizer is a class that overload the operator () operator. This operator is automatically called, and two iterators are passed in to point to all the returned values of a specific signal. The above example uses the Standard C ++ algorithm STD: min_element () to determine and return the smallest value. Unfortunately, we cannot pass an algorithm like STD: min_element () directly to boost: signal as a template parameter.

Total Pages: 15 1 .... 11 12 13 14 15 Go to: Go

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

not found

404! Not Found!

Sorry, you’ve landed on an unexplored planet!

Return Home
phone Contact Us
not found

404! Not Found!

Sorry, you’ve landed on an unexplored planet!

Return Home
phone Contact Us

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.