Skip to content

Instantly share code, notes, and snippets.

@TommyJSWu
TommyJSWu / ct_queen.cpp
Last active June 27, 2022 01:47
Compile-time solving 8-Queens Problem
#include <iostream>
#include <array>
#include <type_traits>
#include <iterator>
template<int... ns>
struct mylist
{
constexpr static std::array<int, sizeof...(ns)> value{ns...};
};