group_identity
関数 · ポテンシャル付き素集合データ構造(可換・非可換どちらの群でも可)
// (1)
template <multiplicative_group T>
T group_identity();
// (2)
template <additive_group T>
T group_identity();
概要
群 T の単位元
計算量
- $O(1)$
関連項目
additive_group— 加法的に書かれた可換群か(合成+・逆元 単項-・単位元T(0))multiplicative_group— 乗法的に書かれた群か(合成*・逆元.inv()・単位元T())group_op— 群 T の二項演算 a・bgroup_inv— 群Tの逆元 $a^{-1}$group—potentialized_union_findが扱える群potentialized_union_find— ポテンシャル付き素集合データ構造(可換・非可換どちらの群でも可)