123456789101112131415161718192021222324252627 |
- #include "max_size.h"
- template <typename T>
- IGL_INLINE int igl::max_size(const std::vector<T> & V)
- {
- int max_size = -1;
- for(
- typename std::vector<T>::const_iterator iter = V.begin();
- iter != V.end();
- iter++)
- {
- int size = (int)iter->size();
- max_size = (max_size > size ? max_size : size);
- }
- return max_size;
- }
- #ifndef IGL_HEADER_ONLY
- // Explicit template specialization
- // generated by autoexplicit.sh
- template int igl::max_size<std::vector<int, std::allocator<int> > >(std::vector<std::vector<int, std::allocator<int> >, std::allocator<std::vector<int, std::allocator<int> > > > const&);
- // generated by autoexplicit.sh
- template int igl::max_size<std::vector<double, std::allocator<double> > >(std::vector<std::vector<double, std::allocator<double> >, std::allocator<std::vector<double, std::allocator<double> > > > const&);
- template int igl::max_size<std::vector<bool, std::allocator<bool> > >(std::vector<std::vector<bool, std::allocator<bool> >, std::allocator<std::vector<bool, std::allocator<bool> > > > const&);
- #endif
|