售 价:¥
温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印
为你推荐
Title Page
Second Edition
Copyright
Boost C++ Application Development Cookbook
Second Edition
Credits
About the Author
About the Reviewer
www.PacktPub.com
Why subscribe?
Customer Feedback
Preface
What this book covers
What you need for this book
Who this book is for
Sections
Getting ready
How to do it…
How it works…
There's more…
See also
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
Starting to Write Your Application
Introduction
Getting configuration options
Getting ready
How to do it...
How it works...
There's more...
See also
Storing any value in a container/variable
Getting ready
How to do it...
How it works...
There's more...
See also
Storing multiple chosen types in a container/variable
Getting ready
How to do it...
How it works...
There's more...
See also
Using a safer way to work with a container that stores multiple chosen types
Getting ready
How to do it...
How it works...
There's more...
See also
Returning a value or flag where there is no value
Getting ready
How to do it...
How it works...
There's more...
See also
Returning an array from a function
Getting ready
How to do it...
How it works...
There's more...
See also
Combining multiple values into one
Getting ready
How to do it...
How it works...
There's more...
See also
Binding and reordering function parameters
Getting ready
How to do it...
How it works...
There's more...
See also
Getting a human-readable type name
Getting ready
How to do it
How it works...
There's more...
See also
Using the C++11 move emulation
Getting ready
How to do it...
How it works...
There's more...
See also
Making a noncopyable class
Getting ready
How to do it...
How it works...
See also
Making a noncopyable but movable class
Getting ready
How to do it...
How it works...
There's more...
See also
Using C++14 and C++11 algorithms
Getting ready
How to do it...
How it works...
There's more...
See also
Managing Resources
Introduction
Managing local pointers to classes that do not leave scope
Getting started
How to do it...
How it works...
There's more...
See also
Reference counting of pointers to classes used across functions
Getting ready
How to do it...
How it works...
There's more...
See also
Managing pointers to arrays that do not leave scope
Getting ready
How to do it...
How it works...
There's more...
See also
Reference counting of pointers to arrays used across functions
Getting ready
How to do it...
How it works...
There's more...
See also
Storing any functional objects in a variable
Getting ready
How to do it...
How it works...
There's more...
See also
Passing function pointer in a variable
Getting ready
How to do it...
How it works...
There's more...
See also
Passing C++11 lambda functions in a variable
Getting ready
How to do it...
There's more...
See also
Containers of pointers
Getting ready
How to do it...
How it works...
There's more...
See also
Do it at scope exit!
Getting ready
How to do it...
How it works...
There's more...
See also
Initializing the base class by the member of the derived class
Getting started
How to do it...
How it works...
There's more...
See also
Converting and Casting
Introduction
Converting strings to numbers
Getting ready
How to do it...
How it works...
There's more...
See also
Converting numbers to strings
Getting ready
How to do it...
How it works...
There's more...
See also
Converting numbers to numbers
Getting ready
How to do it...
How it works...
There's more...
See also
Converting user-defined types to/from strings
How to do it...
How it works...
There's more...
See also
Converting smart pointers
Getting started
How to do it...
How it works...
There's more...
See also
Casting polymorphic objects
Getting started
How to do it...
How it works...
There's more...
See also
Parsing simple input
Getting ready
How to do it...
How it works...
There's more...
See also
Parsing complex input
Getting ready
How to do it...
How it works...
There's more...
See also
Compile-Time Tricks
Introduction
Checking sizes at compile time
Getting ready
How to do it...
How it works...
There's more...
See also
Enabling function template usage for integral types
Getting ready
How to do it...
How it works...
There's more...
See also
Disabling function template usage for real types
Getting ready
How to do it...
How it works...
There's more...
See also
Creating a type from a number
Getting ready
How to do it...
How it works...
There's more...
See also
Implementing a type trait
Getting ready
How to do it...
How it works...
There's more...
See also
Selecting an optimal operator for a template parameter
Getting ready
How to do it...
How it works...
There's more...
See also
Getting a type of expression in C++03
Getting ready
How to do it...
How it works...
There's more...
See also
Multithreading
Introduction
Creating a thread of execution
Getting ready
How to do it...
How it works...
There's more...
See also
Syncing access to a common resource
Getting ready
How to do it...
How it works...
There's more...
See also
Fast access to common resource using atomics
Getting ready
How to do it...
How it works...
There's more...
See also
Creating work_queue class
Getting ready
How to do it...
How it works...
There's more...
See also
Multiple-readers-single-writer lock
Getting ready
How to do it...
How it works...
There's more...
See also
Creating variables that are unique per thread
Getting ready
How to do it...
How it works...
There's more...
See also
Interrupting a thread
Getting ready
How to do it...
How it works...
There's more...
See also
Manipulating a group of threads
Getting ready
How to do it...
How it works...
There's more...
See also
Initializing a shared variable safely
Getting ready
How to do it...
How it works...
There's more..
See also
Locking multiple mutexes
Getting ready
How to do it...
How it works...
There's more...
See also
Manipulating Tasks
Introduction
Before you start
Registering a task for an arbitrary data type processing
Getting ready
How to do it...
How it works...
There's more...
See also
Making timers and processing timer events as tasks
Getting ready
How to do it...
How it works...
There's more...
See also
Network communication as a task
Getting ready
How to do it...
How it works...
There's more...
See also
Accepting incoming connections
Getting ready
How to do it...
How it works...
There's more...
See also
Executing different tasks in parallel
Getting started
How to do it...
How it works...
There's more...
See also
Pipeline tasks processing
Getting ready
How to do it...
How it works...
There's more...
See also
Making a nonblocking barrier
Getting ready
How to do it...
How it works...
There's more...
See also
Storing an exception and making a task from it
Getting ready
How to do it...
How it works...
There's more...
See also
Getting and processing system signals as tasks
Getting ready
How to do it...
How it works...
There is more...
See also
Manipulating Strings
Introduction
Changing cases and case-insensitive comparison
Getting ready
How to do it...
How it works...
There's more...
See also
Matching strings using regular expressions
Getting started
How to do it...
How it works...
There's more...
See also
Searching and replacing strings using regular expressions
Getting ready
How to do it...
How it works...
There's more...
See also
Formatting strings using safe printf-like functions
Getting ready
How to do it...
How it works...
There's more...
See also
Replacing and erasing strings
Getting ready
How to do it...
How it works...
There's more...
See also
Representing a string with two iterators
Getting ready
How to do it...
How it works...
There's more...
See also
Using a reference to string type
Getting ready
How to do it...
How it works...
There's more...
See also
Metaprogramming
Introduction
Using type vector of types
Getting ready
How to do it...
How it works...
There's more...
See also
Manipulating a vector of types
Getting ready
How to do it...
How it works...
There's more...
See also
Getting a function's result type at compile time
Getting ready
How to do it...
How it works...
There's more...
See also
Making a higher-order metafunction
Getting ready
How to do it...
How it works...
There's more...
See also
Evaluating metafunctions lazily
Getting ready
How to do it...
How it works...
There's more...
See also...
Converting all the tuple elements to strings
Getting ready
How to do it...
How it works...
There's more...
See also
Splitting tuples
Getting ready
How to do it...
How it works...
There's more...
See also
Manipulating heterogeneous containers in C++14
Getting ready
How to do it...
How it works...
There's more...
See also
Containers
Introduction
Storing a few elements in a sequence container
Getting ready
How to do it...
How it works...
There's more...
See also
Storing at most N elements in the sequence container
Getting ready
How to do it...
How it works...
There's more...
See also
Comparing strings in an ultra-fast manner
Getting ready
How to do it...
How it works...
There's more...
See also
Using an unordered set and map
Getting ready
How to do it...
How it works...
There's more...
See also
Making a map, where value is also a key
Getting ready
How to do it...
How it works...
There's more...
See also
Using multi-index containers
Getting ready
How to do it...
How it works...
There's more...
See also
Getting benefits of a single linked list and memory pool
Getting ready
How to do it...
How it works...
There's more...
See also
Using flat associative containers
Getting ready
How to do it...
How it works...
There's more...
See also
Gathering Platform and Compiler Information
Introduction
Detecting an OS and compiler
Getting ready
How to do it...
How it works...
There's more...
See also
Detecting int128 support
Getting ready
How to do it...
How it works...
There's more...
See also
Detecting and bypassing disabled RTTI
Getting ready
How to do it...
How it works...
There's more...
See also
Writing metafunctions using simpler methods
Getting ready
How to do it...
How it works...
There's more...
See also
Reducing code size and increasing performance of user-defined types (UDTs) in C++11
Getting ready
How to do it...
How it works...
There's more...
See also
The portable way to export and import functions and classes
Getting ready
How to do it...
How it works...
There's more...
See also
Detecting the Boost version and getting latest features
Getting ready
How to do it...
How it works...
There's more...
See also
Working with the System
Introduction
Listing files in a directory
Getting ready
How to do it...
How it works...
There's more...
See also
Erasing and creating files and directories
Getting ready
How to do it...
How it works...
There's more...
See also
Writing and using plugins
Getting ready
How to do it...
How it works...
There's more...
See also
Getting backtrace – current call sequence
Getting started
How to do it...
How it works...
There's more...
See also
Passing data quickly from one process to another
Getting ready
How to do it...
How it works...
There's more...
See also
Syncing interprocess communications
Getting ready
How to do it...
How it works...
There's more...
See also
Using pointers in a shared memory
Getting ready
How to do it...
How it works...
There's more...
See also
The fastest way to read files
Getting ready
How to do it...
How it works...
There's more...
See also
Coroutines - saving the state and postponing the execution
Getting ready
How to do it...
How it works...
There's more...
See also
Scratching the Tip of the Iceberg
Introduction
Working with graphs
Getting ready
How to do it...
How it works...
There's more...
See also
Visualizing graphs
Getting ready
How to do it...
How it works...
There's more...
See also
Using a true random number generator
Getting started
How to do it...
How it works...
There's more...
See also
Using portable math functions
Getting ready
How to do it...
How it works...
There's more...
See also
Writing test cases
Getting ready
How to do it...
How it works...
There's more...
See also
Combining multiple test cases in one test module
Getting ready
How to do it...
How it works...
There's more...
See also
Manipulating images
Getting ready
How to do it...
How it works...
There's more...
See also
买过这本书的人还买过
读了这本书的人还在读
同类图书排行榜