28 std::free(this->str_);
29 this->str_ = std::exchange(other.str_,
nullptr);
37 std::free((
void*) str_);
45 return std::exchange(str_,
nullptr);
52 return str_ !=
nullptr;
A RAII wrapper for C-style strings.
char * release()
Releases ownership of the string.
unique_cstr(const unique_cstr &)=delete
unique_cstr & operator=(unique_cstr &&other) noexcept
unique_cstr(unique_cstr &&other) noexcept
unique_cstr & operator=(const unique_cstr &)=delete
void move(Item *q1, Item *q2, Item *q3)
In mechanism libraries, cannot use auto const token = nrn_ensure_model_data_are_sorted(); because the...