λ61
Loading...
Searching...
No Matches
utils.hpp File Reference
#include <string>
#include <functional>
#include <type_traits>
#include <vector>
#include <memory>
#include <format>

Go to the source code of this file.

Namespaces

namespace  l61
namespace  l61::meta

Concepts

concept  l61::meta::CppObject

Macros

#define L61_UTILS_HPP

Functions

std::vector< char > l61::get_file (const std::string &f_name)
std::string l61::get_file_str (const std::string &f_name)
std::string l61::execEx (const char *cmd)
std::string l61::get_input (const std::string &prompt="")
template<typename FunctionSignature, typename Lambda>
std::add_pointer_t< FunctionSignature > l61::lambdaToFunPtr (const Lambda &lambda)
 Designed to help with C Apis that take function pointers.
template<meta::CppObject T>
constexpr void l61::deconstruct (T &val)
 Deconstructs an object only use when necessary.
template<typename T>
constexpr T l61::runLambda (const std::function< T()> &lambda)
template<typename T>
std::string l61::toAddressString (const T *ptr)
template<typename T>
std::size_t l61::getHash (const T &v)

Macro Definition Documentation

◆ L61_UTILS_HPP

#define L61_UTILS_HPP