[ create a new paste ] login | about

Link: http://codepad.org/qASAKH8R    [ raw code | fork ]

C++, pasted on Feb 15:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
template<typename T>
class _TPolygon :
	public std::vector< boost::geometry::model::polygon< _TPoint< T >, /*ClockWise*/false, /*Closed*/false > >
{
	typedef boost::geometry::model::polygon< _TPoint< T >, /*ClockWise*/false, /*Closed*/false > polygon_type;

	_TPolygon(std::vector< _TPoint< T > > vecpt)
	{
		emplace_back( polygon_type() );
		static_cast< std::vector< _TPoint< T > >& >( back().outer() ) = std::move(vecpt);
	}

	// ...
}


Create a new paste based on this one


Comments: