mirror of https://github.com/CGAL/cgal
add missing size() function
This commit is contained in:
parent
4bc3ed055b
commit
5006193a57
|
|
@ -60,6 +60,13 @@ namespace CGAL {
|
|||
{
|
||||
return this->second;
|
||||
}
|
||||
|
||||
/// returns `std::distance(begin(), end())`
|
||||
typename std::iterator_traits<I>::difference_type
|
||||
size() const
|
||||
{
|
||||
return std::distance(begin(), end());
|
||||
}
|
||||
};
|
||||
|
||||
template <typename T>
|
||||
|
|
|
|||
|
|
@ -58,6 +58,13 @@ namespace CGAL {
|
|||
{
|
||||
return this->second;
|
||||
}
|
||||
|
||||
/// returns `std::distance(begin(), end())`
|
||||
typename std::iterator_traits<I>::difference_type
|
||||
size() const
|
||||
{
|
||||
return std::distance(begin(), end());
|
||||
}
|
||||
};
|
||||
|
||||
template <typename T>
|
||||
|
|
|
|||
Loading…
Reference in New Issue