Program Listing for File VectorIntersection.h

↰ Return to documentation for file (ADS/set/VectorIntersection.h)

/*--------------------------------------------------------------------------*/
/*------------------------ File VectorIntersection.h -----------------------*/
/*--------------------------------------------------------------------------*/
/*--------------------------------------------------------------------------*/
/*----------------------------- DEFINITIONS --------------------------------*/
/*--------------------------------------------------------------------------*/

#ifndef __ADS_VectorIntersection
 #define __ADS_VectorIntersection
                      /* self-identification: #endif constant */

/*--------------------------------------------------------------------------*/
/*------------------------------ INCLUDES ----------------------------------*/
/*--------------------------------------------------------------------------*/

#include "ADS/Contract.h"

#include <cstddef>
#include <vector>

/*--------------------------------------------------------------------------*/
/*--------------------------- NAMESPACE ------------------------------------*/
/*--------------------------------------------------------------------------*/

namespace ADS {

template< class T >
std::size_t intersect( const T * a , std::size_t n , const T * b ,
                       std::size_t m , T * out );

template< class T >
std::vector< T > intersect( const std::vector< T > & A ,
                            const std::vector< T > & B );

/*--------------------------------------------------------------------------*/

}  // end( namespace ADS )

/*--------------------------------------------------------------------------*/
/*-------------------------- IMPLEMENTATION --------------------------------*/
/*--------------------------------------------------------------------------*/

#include "ADS/set/impl/VectorIntersection.tpp"

/*--------------------------------------------------------------------------*/

#endif  /* VectorIntersection.h included */

/*--------------------------------------------------------------------------*/
/*---------------------- End File VectorIntersection.h ---------------------*/
/*--------------------------------------------------------------------------*/