📜  C++库-

📅  最后修改于: 2020-12-15 04:28:16             🧑  作者: Mango


介绍

它包含无关域中的实用程序。

  • Pairs-这些对象可以保存两个不同类型的值:pair,make_pair,piecewise_construct和piecewise_construct_t。

  • 通用关系运算符-这是关系运算符!=,>,<=和> =在特定命名空间rel_ops下的标准定义。

  • 右值强制转换(C++ 11) -它允许生成右值引用:forward,move,move_if_noexcept,declval。

  • 通用交换函数-这是标准定义,默认情况下由标准库的组件用于不提供自身重载的所有类型:swap。

功能

Sr.No. Function & description
1 swap

It exchanges values of two objects.

2 make_pair

It constructs the pair objects.

3 forward

It is a forward argument.

4 move

It moves as rvalue.

5 move_if_noexcept

It moves if noexcept.

6 declval

It is a declaration value.

常数

Sr.No. Constant & description
1 piecewise_construct

It is a piecewise construct constant.

命名空间

Sr.No. Namespace & description
1 rel_ops

It is a relational Operators.