mirror of https://github.com/CGAL/cgal
Distinghuish cases for performance reasons
This commit is contained in:
parent
b7528c45e0
commit
dc37818494
|
|
@ -55,17 +55,21 @@ public:
|
||||||
void init(CurveIterator begin, CurveIterator end)
|
void init(CurveIterator begin, CurveIterator end)
|
||||||
{
|
{
|
||||||
m_xcurves.clear();
|
m_xcurves.clear();
|
||||||
//m_xcurves.insert(m_xcurves.end(), begin, end);
|
#ifdef CGAL_CFG_MISSING_TEMPLATE_VECTOR_CONSTRUCTORS_BUG
|
||||||
// Because SunPro CC doesn't support template member functions:
|
|
||||||
std::copy(begin, end, std::back_inserter(m_xcurves));
|
std::copy(begin, end, std::back_inserter(m_xcurves));
|
||||||
|
#else
|
||||||
|
m_xcurves.insert(m_xcurves.end(), begin, end);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
template <class CurveIterator>
|
template <class CurveIterator>
|
||||||
void insert(CurveIterator begin, CurveIterator end)
|
void insert(CurveIterator begin, CurveIterator end)
|
||||||
{
|
{
|
||||||
//m_xcurves.insert(m_xcurves.end(), begin, end);
|
#ifdef CGAL_CFG_MISSING_TEMPLATE_VECTOR_CONSTRUCTORS_BUG
|
||||||
// Because SunPro CC doesn't support template member functions:
|
|
||||||
std::copy(begin, end, std::back_inserter(m_xcurves));
|
std::copy(begin, end, std::back_inserter(m_xcurves));
|
||||||
|
#else
|
||||||
|
m_xcurves.insert(m_xcurves.end(), begin, end);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
bool is_empty() const
|
bool is_empty() const
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue