Search

Found: 16

How to Diagnose and Safely Reclaim Disk Space Used by Docker

Contents Docker stores images, containers, volumes, and build cache. BuildKit's intermediate layers speed up repeat builds but accumulate over time. This article covers diagnosis and selective cleanup. All numbers and command output are an illustrative snapsho

C++

Non-Type Template Parameters in C++

Contents What Is a Non-Type Template Parameter? A non-type template parameter (NTTP) lets you pass a value known at compile time to a template: for example, an array size, a numeric constant, or a pointer to an object or function. Such a parameter is declared

Ubuntu

Setting Up SSH on Ubuntu

In this guide, we will install OpenSSH Server on Ubuntu, determine the server address, configure password and SSH key authentication, and then safely disable password-based login. ssh Contents 1. Installing the SSH server On Ubuntu, the SSH server is provided

C++Programming

CTAD and deduction guides in C++

Contents From Explicit Template Arguments to CTAD Before C++17, class template arguments usually had to be specified explicitly: Stack<int> stack; Since C++17, the compiler can often deduce these arguments from an initializer: Stack stack{42}; // Stack<int> Th

C++Programming

Default Class Template Arguments and Type Aliases

Contents In brief: default template arguments let you omit parameters that are used repeatedly, while type aliases shorten long type names. Default arguments are subject to declaration-order and redeclaration rules, dependent types generally require typename,

C++Programming

Full and Partial Specialization of Class Templates

Contents In brief: a primary template defines the general behavior. A full specialization replaces it for a specific set of arguments, while a partial specialization covers an entire family of arguments. An individual template member can also be fully speciali

C++Programming

Class templates

Contents What Is a Class Template? A class template lets you describe one class that works with different types. For example, a stack can hold numbers, strings, or other objects while providing the same operations. The template parameter T specifies the elemen