thebushidocollective avatar

Cpp Modern Features

This covers the essentials of modern C++ from C++11 through C++20: auto type deduction, lambdas with various capture modes, range-based for loops, uniform initialization, and move semantics. The examples are practical and show before/after comparisons that make the improvements obvious. You'll want this when writing or reviewing C++ that needs to be idiomatic and efficient rather than stuck in pre-2011 style. The structured bindings and move constructor examples are especially useful since those trip people up. It doesn't cover every modern feature (no modules or coroutines), but what's here is the stuff you actually use daily.

skills.sh installs
245
GitHub stars
200
last updated
Aug 21, 2026

Install

$ npx -y skills add thebushidocollective/han --skill cpp-modern-features --agent claude-code

Installs into .claude/skills of the current project.

Files

Modern C++ Features

Modern C++ (C++11 and beyond) introduced significant improvements that make C++ more expressive, safer, and easier to use. This skill covers essential modern features including type inference, lambda expressions, range-based loops, smart initialization, and the latest C++20 additions.

Auto Type Inference

The auto keyword enables automatic type deduction, reducing verbosity while maintaining type safety.

#include <iostream>
#include <vector>
#include <map>
#include <string>

void auto_examples() {
    // Simple type inference
    auto x = 42;              // int
    auto pi = 3.14159;        // double
    auto name = "Alice";      // const char*
    auto message = std::string("Hello");  // std::string

    // Iterator simplification
    std::vector<int> numbers = {1, 2, 3, 4, 5};

    // Before C++11
    for (std::vector<int>::iterator it = numbers.begin();
         it != numbers.end(); ++it) {
        std::cout << *it << " ";
    }

    // With auto
    for (auto it = numbers.begin(); it != numbers.end(); ++it) {
        std::cout << *it << " ";
    }

Sponsors

Details

Repository
github.com/thebushidocollective/han
First seen
Jun 3, 2026

More from thebushidocollective/han

All 14

Recommended

1juliusbrussee avatarcavemanjuliusbrussee/cavemanUltra-compressed communication mode. Cuts output tokens 65% (measured) by speaking like caveman while keeping full technical accuracy. Supports intensity levels618.3Kskills.sh installs
2mattpocock avatargrill-memattpocock/skillsA relentless interview to sharpen a plan or design.1.5Mskills.sh installs
3shadcn avatarimproveshadcn/improveSurvey any codebase as a senior advisor and produce prioritized, self-contained implementation plans for OTHER models/agents to execute. Strictly read-only on s40Kskills.sh installs
4obra avatarsystematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixes326.7Kskills.sh installs
5forrestchang avatarkarpathy-guidelinesforrestchang/andrej-karpathy-skillsBehavioral guidelines to reduce common LLM coding mistakes through explicit assumptions, simplicity, and verifiable success criteria.17.9Kskills.sh installs
6vercel-labs avatarfind-skillsvercel-labs/skillsHelps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express int4.3Mskills.sh installs