64 ArrayHolder() =
default;
66 void swap(ArrayHolder& iOther) {
67 const char*
t = iOther.ptr_;
71 ArrayHolder(
const char* iPtr) :
ptr_(iPtr) {}
72 ~ArrayHolder() {
delete[]
ptr_; }
83 char* pName =
const_cast<char*
>(kBlank);
87 ArrayHolder pNameHolder;
89 size_t const nBytes = std::strlen(
name().
value()) + 1;
90 pName =
new char[nBytes];
93 std::strncpy(pName,
name().
value(), nBytes);
97 pNameHolder.release();
102 delete[]
const_cast<char*
>(
name().
value());
bool operator<(const DataKey &iRHS) const
void swap(edm::DataFrameContainer &lhs, edm::DataFrameContainer &rhs)
DataKey & operator=(const DataKey &)
bool operator==(const DataKey &iRHS) const
friend void swap(DataKey &, DataKey &)
const NameTag & name() const
const char * value() const