とりあえず作って・・・(手荷物一時預かり 編)おそらくその1。

東方算程譚:手荷物一時預かり
とりあえず作って・・・ないw(今のところ)

いや、ゆくゆくは実装はできると思うんですよ。でも提示されているものだけだと・・・「set」がまったく見えないのでなんにも想像できないw
変数名からして、おそらく貸し出した番号を格納しておくんだとは思いますが。
なのでちょっと調べました。
MSDN:set Class
どうやら要素の挿入時に自動的にソートするコンテナの様子・・・SortedListあたりで代用できるかな?(書くのか?これをw)
とりあえずメンバをコピってメモ。


Member Functions

begin Returns an iterator that addresses the first element in the set.
clear Erases all the elements of a set.
count Returns the number of elements in a set whose key matches a parameter-specified key.
empty Tests if a set is empty.
end Returns an iterator that addresses the location succeeding the last element in a set.
equal_range Returns a pair of iterators respectively to the first element in a set with a key that is greater than a specified key and to the first element in the set with a key that is equal to or greater than the key.
erase Removes an element or a range of elements in a set from specified positions or removes elements that match a specified key.
find Returns an iterator addressing the location of an element in a set that has a key equivalent to a specified key.
get_allocator Returns a copy of the allocator object used to construct the set.
insert Inserts an element or a range of elements into a set.
key_comp Retrieves a copy of the comparison object used to order keys in a set.
lower_bound Returns an iterator to the first element in a set with a key that is equal to or greater than a specified key.
max_size Returns the maximum length of the set.
rbegin Returns an iterator addressing the first element in a reversed set.
rend Returns an iterator that addresses the location succeeding the last element in a reversed set.
set Constructs a set that is empty or that is a copy of all or part of some other set.
size Returns the number of elements in the set.
swap Exchanges the elements of two sets.
upper_bound Returns an iterator to the first element in a set that with a key that is equal to or greater than a specified key.
value_comp Retrieves a copy of the comparison object used to order element values in a set.