Skip to content

SCL Utility

ScL.Utility

Overview

ScL.Utility is a header-only C++20 module providing common utilities not available in the standard library. It is part of the ScL Toolkit and has no external dependencies.

Quick start

Include the umbrella header and link against the CMake target:

target_link_libraries(your_target PRIVATE scl::utility)
#include <scl/utility.h>

static_assert(scl::type_name<int>() == "int");

Features

  • Meta (ScL Meta Infos) — compile-time type, enum, and symbol name extraction without RTTI.
  • Preprocessor (ScL Preprocessor Utilities (C++)) — macro utilities including token forwarding (SCL_FORWARD) and a compile-time counter (SCL_COUNTER_VALUE / SCL_COUNTER_NEXT).
  • Type traits (ScL Type Traits) — detection idiom, forward_like, member pointer decomposition, and overload_cast.