From b998225160f806c6515d51a3aacb9920fb77ad9a Mon Sep 17 00:00:00 2001 From: eap Date: Fri, 29 Jun 2012 13:47:05 +0000 Subject: [PATCH] 0021542: EDF 1699 SMESH: Reorient a group of faces namespace SMESHUtils { + template + void CompactVector(TVECTOR& vec) } --- src/SMESHUtils/SMESH_TypeDefs.hxx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/SMESHUtils/SMESH_TypeDefs.hxx b/src/SMESHUtils/SMESH_TypeDefs.hxx index e43222958..6b0cdcba8 100644 --- a/src/SMESHUtils/SMESH_TypeDefs.hxx +++ b/src/SMESHUtils/SMESH_TypeDefs.hxx @@ -60,6 +60,12 @@ namespace SMESHUtils TVECTOR v2; vec.swap( v2 ); } + template + void CompactVector(TVECTOR& vec) + { + TVECTOR v2( vec ); + vec.swap( v2 ); + } } //======================================================================= -- 2.39.2