! \brief Constructs with a value copied from another. * * \param vec the vector to copy. */
| 757 | * \param vec the vector to copy. |
| 758 | */ |
| 759 | vector(const vector<T, N>& vec) : |
| 760 | size_(vec.size_) |
| 761 | { |
| 762 | if (size_ != 0) { |
| 763 | assign(vec.begin(), vec.end()); |
| 764 | } |
| 765 | } |
| 766 | |
| 767 | /*! \brief Constructs with a specified number of initial elements. |
| 768 | * |