Skip to content

Instantly share code, notes, and snippets.

View arrayJY's full-sized avatar

arrayJY arrayJY

  • China
View GitHub Profile
@arrayJY
arrayJY / 📊 Weekly development breakdown
Last active December 22, 2023 00:05
Weekly Development Breakdown
TypeScript 3 hrs 11 mins ████████████████████▊ 99.0%
Other 1 min ▏░░░░░░░░░░░░░░░░░░░░ 1.0%
@arrayJY
arrayJY / fixed_string.hpp
Created March 14, 2023 08:24
C++17 constexpr FixedString
#pragma once
#include <algorithm>
template<typename CharT, std::size_t N>
struct FixedString {
explicit constexpr FixedString() = default;
explicit constexpr FixedString(const CharT (&s)[N]) {
std::copy(s, s + N, _data);
}