/usr/include/root/Reflex/internal/InternalTools.h is in libroot-core-dev 5.34.14-1build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 | // @(#)root/reflex:$Id$
// Author: Stefan Roiser 2006
// Copyright CERN, CH-1211 Geneva 23, 2004-2006, All rights reserved.
//
// Permission to use, copy, modify, and distribute this software for any
// purpose is hereby granted without fee, provided that this copyright and
// permissions notice appear in all copies and derivatives.
//
// This software is provided "as is" without express or implied warranty.
// Include Files
#ifndef Reflex_InternalTools
#define Reflex_InternalTools
namespace Reflex {
namespace OTools {
template <typename TO> class ToIter {
public:
template <typename CONT>
static typename std::vector<TO>::iterator
Begin(const CONT& cont) {
return ((typename std::vector<TO> &) const_cast<CONT&>(cont)).begin();
}
template <typename CONT>
static typename std::vector<TO>::iterator
End(const CONT& cont) {
return ((typename std::vector<TO> &) const_cast<CONT&>(cont)).end();
}
template <typename CONT>
static typename std::vector<TO>::const_reverse_iterator
RBegin(const CONT& cont) {
return ((const typename std::vector<TO> &)cont).rbegin();
}
template <typename CONT>
static typename std::vector<TO>::const_reverse_iterator
REnd(const CONT& cont) {
return ((const typename std::vector<TO> &)cont).rend();
}
};
} // namespace OTools
} // namespace Reflex
#endif // Reflex_InternalTools
|