noexcept与constexpr使示例
constexpr int square(int x){
return x * x;
}
void swap(int a,int b) noexcept
{
}
void swap(int a,int b,int c) noexcept(true)
{
}
pair<string,int>& operator=(pair<string,int>&& p) noexcept(
is_nothrow_move_assignable<string>::value &&
is_nothrow_move_assignable<int>::value
);
auto x=numeric_limits<short>::max();
std::array<int, 99> arr;
array<string,numeric_limits<short>::max()> maxArray;
匿名函数使用示例
//lambda不可以是模板
//匿名函数定义
auto func = []{
cout<<