Commit 0a4c9f2c authored by Jakub Klinkovský's avatar Jakub Klinkovský
Browse files

Unit tests for StaticVector

parent e909453e
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -27,6 +27,9 @@ class StaticArray
   __cuda_callable__
   inline StaticArray();

   // Note: the template avoids ambiguity of overloaded functions with literal 0 and pointer
   // reference: https://stackoverflow.com/q/4610503
   template< typename _unused = void >
   __cuda_callable__
   inline StaticArray( const Element v[ Size ] );

@@ -100,6 +103,9 @@ class StaticArray< 1, Element >
   __cuda_callable__
   inline StaticArray();

   // Note: the template avoids ambiguity of overloaded functions with literal 0 and pointer
   // reference: https://stackoverflow.com/q/4610503
   template< typename _unused = void >
   __cuda_callable__
   inline StaticArray( const Element v[ size ] );

@@ -181,6 +187,9 @@ class StaticArray< 2, Element >
   __cuda_callable__
   inline StaticArray();

   // Note: the template avoids ambiguity of overloaded functions with literal 0 and pointer
   // reference: https://stackoverflow.com/q/4610503
   template< typename _unused = void >
   __cuda_callable__
   inline StaticArray( const Element v[ size ] );

@@ -273,6 +282,9 @@ class StaticArray< 3, Element >
   __cuda_callable__
   inline StaticArray();

   // Note: the template avoids ambiguity of overloaded functions with literal 0 and pointer
   // reference: https://stackoverflow.com/q/4610503
   template< typename _unused = void >
   __cuda_callable__
   inline StaticArray( const Element v[ size ] );

+1 −0
Original line number Diff line number Diff line
@@ -23,6 +23,7 @@ inline StaticArray< 1, Element >::StaticArray()
}

template< typename Element >
   template< typename _unused >
__cuda_callable__
inline StaticArray< 1, Element >::StaticArray( const Element v[ size ] )
{
+1 −0
Original line number Diff line number Diff line
@@ -24,6 +24,7 @@ inline StaticArray< 2, Element >::StaticArray()
}

template< typename Element >
   template< typename _unused >
__cuda_callable__
inline StaticArray< 2, Element >::StaticArray( const Element v[ size ] )
{
+1 −0
Original line number Diff line number Diff line
@@ -24,6 +24,7 @@ inline StaticArray< 3, Element >::StaticArray()
}

template< typename Element >
   template< typename _unused >
__cuda_callable__
inline StaticArray< 3, Element >::StaticArray( const Element v[ size ] )
{
+1 −0
Original line number Diff line number Diff line
@@ -24,6 +24,7 @@ inline StaticArray< Size, Element >::StaticArray()
};

template< int Size, typename Element >
   template< typename _unused >
__cuda_callable__
inline StaticArray< Size, Element >::StaticArray( const Element v[ Size ] )
{
Loading