Template:cpp/container/constructor ordset

Constructs new container from a variety of data sources and optionally using user supplied allocator or comparison function object.

@1@ Default constructor. Constructs empty container. @2@ Range constructor. Constructs the container with the contents of the range. @3@ Copy constructor. Constructs the container with the copy of the contents of.

@4@ Move constructor. Constructs the container with the contents of using move semantics. If is not provided, allocator is obtained by move-construction from the allocator belonging to.

@5@ Initializer-list constructor. Constructs the container with the contents of the initializer list.

Complexity
@1@ Constant

@2@ $N log(N)$ where in general, linear in  if the range is already sorted by.

@3@ Linear in size of

@4@ Constant. If is given and, then linear.

@5@ $N log(N)$ where in general, linear in  if  is already sorted by.

Exceptions
Calls to may throw.