Distinghuish cases for performance reasons

This commit is contained in:
Andreas Fabri 2007-03-29 18:18:07 +00:00
parent b7528c45e0
commit dc37818494
1 changed files with 8 additions and 4 deletions

View File

@ -55,17 +55,21 @@ public:
void init(CurveIterator begin, CurveIterator end)
{
m_xcurves.clear();
//m_xcurves.insert(m_xcurves.end(), begin, end);
// Because SunPro CC doesn't support template member functions:
#ifdef CGAL_CFG_MISSING_TEMPLATE_VECTOR_CONSTRUCTORS_BUG
std::copy(begin, end, std::back_inserter(m_xcurves));
#else
m_xcurves.insert(m_xcurves.end(), begin, end);
#endif
}
template <class CurveIterator>
void insert(CurveIterator begin, CurveIterator end)
{
//m_xcurves.insert(m_xcurves.end(), begin, end);
// Because SunPro CC doesn't support template member functions:
#ifdef CGAL_CFG_MISSING_TEMPLATE_VECTOR_CONSTRUCTORS_BUG
std::copy(begin, end, std::back_inserter(m_xcurves));
#else
m_xcurves.insert(m_xcurves.end(), begin, end);
#endif
}
bool is_empty() const