|
AM Daemon ライブラリリファレンス
|
コンテナクラス関連の便利処理を提供するヘッダ。 [詳解]
#include "amdaemon/env.h"#include <algorithm>#include <utility>#include <type_traits>#include <iterator>#include <vector>#include <bitset>
container.h の依存先関係図:名前空間 | |
| amdaemon | |
| AM Daemon ライブラリクラス群の基底名前空間。 | |
| amdaemon::util | |
| AM Daemon プロセスとは無関係だが便利なクラス、関数等を定義する名前空間。 | |
関数 | |
| template<class Container , class T > | |
| std::ptrdiff_t | amdaemon::util::findIndex (Container &container, const T &target) |
| コンテナから指定した値を検索し、そのインデックスを返す。 [詳解] | |
| template<class DestContainer , class SrcContainer > | |
| DestContainer | amdaemon::util::toContainer (SrcContainer &&src) |
| コンテナを別のコンテナ型に変換する。 [詳解] | |
| template<class Container , class SizeType , class Getter > | |
| Container | amdaemon::util::toContainer (SizeType count, Getter &&getter) |
| インデックス値を引数に取る関数から得た値をコンテナに格納して返す。 [詳解] | |
| template<std::size_t N, class T > | |
| std::bitset< N > | amdaemon::util::toBitset (T &&value) |
| 引数値を std::bitset 型に変換する。 [詳解] | |
| template<class Integer > | |
| auto | amdaemon::util::toBitset (Integer value) -> typename std::enable_if< std::is_integral< Integer >::value, std::bitset< sizeof(Integer)*8 >>::type |
| 数値を std::bitset 型に変換する。 [詳解] | |
コンテナクラス関連の便利処理を提供するヘッダ。
Copyright(C)SEGA
1.8.11