]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | .. Sequences/Intrinsic Metafunctions//sequence_tag |
2 | ||
3 | sequence_tag | |
4 | ============ | |
5 | ||
6 | Synopsis | |
7 | -------- | |
8 | ||
9 | .. parsed-literal:: | |
10 | ||
11 | template< | |
12 | typename X | |
13 | > | |
14 | struct sequence_tag | |
15 | { | |
16 | typedef |unspecified| type; | |
17 | }; | |
18 | ||
19 | ||
20 | ||
21 | Description | |
22 | ----------- | |
23 | ||
24 | ``sequence_tag`` is a |tag-metafunction| for all |tag dispatched| | |
25 | `intrinsic sequence operations`__. | |
26 | ||
27 | __ `Intrinsic Metafunctions`_ | |
28 | ||
29 | ||
30 | Header | |
31 | ------ | |
32 | ||
33 | .. parsed-literal:: | |
34 | ||
35 | #include <boost/mpl/sequence_tag.hpp> | |
36 | ||
37 | ||
38 | Parameters | |
39 | ---------- | |
40 | ||
41 | +---------------+-------------------+-----------------------------------------------+ | |
42 | | Parameter | Requirement | Description | | |
43 | +===============+===================+===============================================+ | |
44 | | ``X`` | Any type | A type to obtain a sequence tag for. | | |
45 | +---------------+-------------------+-----------------------------------------------+ | |
46 | ||
47 | ||
48 | Expression semantics | |
49 | -------------------- | |
50 | ||
51 | For any arbitrary type ``x``: | |
52 | ||
53 | ||
54 | .. parsed-literal:: | |
55 | ||
56 | typedef sequence_tag<x>::type tag; | |
57 | ||
58 | :Return type: | |
59 | A type. | |
60 | ||
61 | :Semantics: | |
62 | ``tag`` is an unspecified tag type for ``x``. | |
63 | ||
64 | ||
65 | Complexity | |
66 | ---------- | |
67 | ||
68 | Amortized constant time. | |
69 | ||
70 | ||
71 | See also | |
72 | -------- | |
73 | ||
74 | `Intrinsic Metafunctions`_, |Tag Dispatched Metafunction| | |
75 | ||
76 | ||
77 |