/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
DataFormats/Provenance/src/ElementID.cc
19 строк
523 B
W. David Dagenhart
From scram b code-format-all (clang-format)
10 май 2019, 17:51
10 май 2019, 17:51
82e0ab0
Код
Авторство
О чём код?
#include "DataFormats/Provenance/interface/ElementID.h" #include <algorithm> #include <ostream> namespace edm { void ElementID::swap(ElementID& other) { std::swap(index_, other.index_); edm::swap(id_, other.id_); } bool operator<(ElementID const& lh, ElementID const& rh) { return lh.id() < rh.id() || (lh.id() == rh.id() && lh.index() < rh.index()); } std::ostream& operator<<(std::ostream& os, ElementID const& id) { os << id.id() << ":" << id.index(); return os; } } // namespace edm