Template:cpp/container/constructor ord

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

@1-3@ Constructs an empty container.

@4-5@ Constructs the container with the contents of the range.

@6-7@ Copy constructor. Constructs the container with the copy of the contents of.

@8-9@ 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.

@10-11@ Constructs the container with the contents of the initializer list.

Complexity
@1-3@ Constant

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

@6-7@ Linear in size of

@8-9@ Constant. If is given and, then linear.

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

Exceptions
Calls to may throw.