Skip to content
Snippets Groups Projects
Commit c1a71beb authored by Tomáš Oberhuber's avatar Tomáš Oberhuber
Browse files

Added documentation for template static for-loop.

parent 280cf82d
No related branches found
No related tags found
1 merge request!44Tutorials
......@@ -35,6 +35,11 @@ namespace Algorithms {
* \tparam begin the loop iterates over index interval [begin,end).
* \tparam end the loop iterates over index interval [begin,end).
* \tparam LoopBody is a templated class having one template parameter of IndexType.
*
* \par Example
* \include Algorithms/TamplateStaticForExample.cpp
* \par Output
* \include TamplateStaticForExample.out
*/
template< typename IndexType,
IndexType begin,
......@@ -50,6 +55,12 @@ template< typename IndexType,
template< IndexType > class LoopBody >
struct TemplateStaticForExecutor
{
/**
* \brief Static method initiating the for-loop.
*
* \tparam Args type of user defined data to be passed to for-loop.
* \param args user defined data to be passed to for-loop.
*/
template< typename... Args >
__cuda_callable__
static void exec( Args&&... args )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment