28 namespace eventsetup {
79 ArrayHolder():
ptr_(
nullptr){}
81 void swap(ArrayHolder& iOther) {
82 const char*
t = iOther.ptr_;
86 ArrayHolder(
const char* iPtr):
ptr_(iPtr) {}
87 ~ArrayHolder() {
delete []
ptr_; }
98 char* pName =
const_cast<char*
>(
kBlank);
102 ArrayHolder pNameHolder;
104 size_t const nBytes = std::strlen(
name().
value()) + 1;
105 pName =
new char[nBytes];
106 ArrayHolder
t(pName);
108 std::strncpy(pName,
name().
value(), nBytes);
112 pNameHolder.release();
119 delete []
const_cast<char*
>(
name().
value());
static const char kBlank[]
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