Compute Library
 21.08
Utils.h File Reference
#include "support/StringSupport.h"
#include <algorithm>
#include <cmath>
#include <cstddef>
#include <limits>
#include <memory>
#include <numeric>
#include <sstream>
#include <string>
#include <type_traits>

Go to the source code of this file.

Namespaces

 arm_compute
 Copyright (c) 2017-2021 Arm Limited.
 
 arm_compute::test
 
 arm_compute::test::framework
 

Functions

template<typename O , typename F , typename... As, int... S>
void apply_impl (O *obj, F &&func, const std::tuple< As... > &args, detail::sequence< S... >)
 
template<typename O , typename F , typename... As>
void apply (O *obj, F &&func, const std::tuple< As... > &args)
 
template<typename T , typename std::enable_if< std::is_same< typename T::value_type, std::string >::value, int >::type = 0>
std::string join (T first, T last, const std::string &separator)
 Helper function to concatenate multiple strings. More...
 
template<typename T , typename UnaryOp >
std::string join (T &&first, T &&last, const std::string &separator, UnaryOp &&op)
 Helper function to concatenate multiple values. More...
 
template<typename T , typename std::enable_if< std::is_arithmetic< typename T::value_type >::value, int >::type = 0>
std::string join (T &&first, T &&last, const std::string &separator)
 Helper function to concatenate multiple values. More...
 
std::string tolower (std::string string)
 Convert string to lower case. More...
 
template<typename T , typename std::enable_if< std::is_arithmetic< T >::value, int >::type = 0>
std::string arithmetic_to_string (T val, int decimal_places=0)
 Create a string with the arithmetic value in full precision. More...
 
void sleep_in_seconds (float seconds)
 Makes the calling thread to sleep for a specified number of seconds. More...