/usr/include/bobcat/ranger is in libbobcat-dev 4.01.03-2ubuntu1.
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 56 57 58 59 60 61 62 63 | #ifndef INCLUDED_BOBCAT_RANGER_
#define INCLUDED_BOBCAT_RANGER_
namespace FBB
{
template <typename Iter>
class Ranger
{
Iter d_begin;
Iter d_end;
public:
Ranger(Iter const &begin, Iter const &end); // .f
Iter const &begin() const; // .f
Iter const &end() const; // .f
};
template <typename Iter>
Ranger<Iter>::Ranger(Iter const &begin, Iter const &end)
:
d_begin(begin),
d_end(end)
{}
template <typename Iter>
Iter const &Ranger<Iter>::begin() const
{
return d_begin;
}
template <typename Iter>
Iter const &Ranger<Iter>::end() const
{
return d_end;
}
// Free functions
template <typename Iter>
Ranger<Iter> ranger(Iter &&begin, Iter &&end)
{
return Ranger<Iter>(begin, end);
}
template <typename Data>
Ranger<Data *> ranger(Data *begin, Data *end)
{
return Ranger<Data *>(begin, end);
}
template <typename Iter>
Ranger<Iter> ranger(Iter &&begin, size_t count)
{
return Ranger<Iter>(begin, begin + count);
}
template <typename Data>
Ranger<Data *> ranger(Data *begin, size_t count)
{
return Ranger<Data *>(begin, begin + count);
}
} // FBB
#endif
|