\brief memset \param value the value
| 480 | /// \brief memset |
| 481 | /// \param value the value |
| 482 | void memset(T value) { |
| 483 | T* ptr = data(); |
| 484 | for (size_t i = 0; i < size(); i++) { |
| 485 | ptr[i] = value; |
| 486 | } |
| 487 | } |
| 488 | |
| 489 | /// \brief copy from |
| 490 | /// \param other the other bytes |