-
-
Notifications
You must be signed in to change notification settings - Fork 81
dtl::find::Is1Bit (発見クラス)
Kasugaccho edited this page Aug 17, 2019
·
2 revisions
namespace dtl::find {
template <typename T>
class Is1Bit;
}
※ T
は1bit以上の型
機能名 | 対応 |
---|---|
非長方形Matrix | 可能✅ |
#include <DTL.hpp>
#include <cstdint>
#include <array>
#include <iostream>
int main() {
using shape_t = std::uint_fast8_t;
std::array<std::array<shape_t, 8>, 8> matrix{ {} };
std::array<std::array<shape_t, 8>, 8> matrix2{ {} };
dtl::shape::Rect<shape_t>(1).draw(matrix);
std::cout << dtl::find::Is1Bit<shape_t>().draw(matrix) << '\n';
dtl::shape::Reversi<shape_t>(1, 2).draw(matrix2);
std::cout << dtl::find::Is1Bit<shape_t>().draw(matrix2) << '\n';
return 0;
}
1
0
Copyright (c) 2018-2021 As Project.
Distributed under the Boost Software License, Version 1.0.(See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)