array insertions

This commit is contained in:
2025-11-09 08:56:07 -05:00
parent 4dd6b805cb
commit 06c2ca306a
30 changed files with 171 additions and 2 deletions

View File

@ -9,6 +9,12 @@ namespace ams
//psize must be supplied to determine whether to execute in threaded mode or not.
template<typename callable, typename ... argst> int threaded_execute(callable &&fptr, int64_t psize, argst&&... args);
//A template function that takes as input a function pointer and a series of arguments
//The function is executed with fptr(threadnum, nthreads, otherargs...) with a given number of threads
template<typename callable, typename ... argst> int numthreaded_execute(callable &&fptr, int nthreads, argst&&... args);
template<typename T1, typename T2> struct pair
{
public: