⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 use_of_stl.ps

📁 cgal 3.0.1 的文挡
💻 PS
📖 第 1 页 / 共 5 页
字号:
-140 40 mt100 40 lt% sk0 sg sk% End% Line% ss 00.4 [] ssnp % # 2-20 160 mt-20 -80 lt% sk0 sg sk% End% Circle% ss 00.4 [] ssnp % xy-140 146.667 % r13.3333 ci% sk0 sg sk% End% Group% End% Circle% ss 00.4 [] ssnp % xy100 40 % r13.3333 ci% sk0 sg sk% End% Circle% ss 00.4 [] ssnp % xy100 160 % r13.3333 ci% sk0 sg sk% End% Circle% ss 00.4 [] ssnp % xy-140 40 % r13.3333 ci% sk0 sg sk% End% Circle% ss 00.4 [] ssnp % xy-140 -66.6667 % r13.3333 ci% sk0 sg sk% End% Circle% ss 00.4 [] ssnp % xy-140 -40 % r13.3333 ci% sk0 sg sk% End% Circle% ss 00.4 [] ssnp % xy-20 -80 % r13.3333 ci% sk0 sg sk% End% Line% ss 00.4 [] ssnp % # 2-126.667 160 mt-126.667 -80 lt% sk0 sg sk% End% Line% ss 00.4 [] ssnp % # 2-100 160 mt-100 -80 lt% sk0 sg sk% End% Circle% ss 00.4 [] ssnp % xy-113.333 160 % r13.3333 ci% sk0 sg sk% End% Circle% ss 00.4 [] ssnp % xy-113.333 -80 % r13.3333 ci% sk0 sg sk% End% Line% ss 00.4 [] ssnp % # 2-140 146.667 mt100 146.667 lt% sk0 sg sk% End% Line% ss 00.4 [] ssnp % # 2-140 -13.3333 mt100 -13.3333 lt% sk0 sg sk% End% Line% ss 00.4 [] ssnp % # 2-140 -46.6666 mt100 -46.6666 lt% sk0 sg sk% End% Line% ss 00.4 [] ssnp % # 2-140 -63.3333 mt100 -63.3333 lt% sk0 sg sk% End% Line% ss 00.4 [] ssnp % # 2-113.333 -80 mt100 26.6667 lt% sk0 sg sk% End% Line% ss 00.4 [] ssnp % # 2-126.667 146.667 mt-6.6667 -80 lt% sk0 sg sk% End% Circle% ss 00.4 [] ssnp % xy-28.9179 -37.8216 % r25.5457 ci% sk0 sg sk% End% Arc% ss 00.4 [] ss% xy-140 -40 % r136.8 % ang-36 98 np arc% sk0 sg sk% End% Circle% ss 00.4 [] ssnp % xy-86.6667 146.667 % r13.3333 ci% sk0 sg sk% End% Line% ss 00.4 [] ssnp % # 63-139.984 159.97 mt-137.754 159.768 lt-136.403 159.498 lt-135.525 159.228 lt-134.106 158.655 lt-132.991 157.98 lt-131.606 157.036 lt-130.39 155.991 lt-129.546 154.979 lt-128.6 153.63 lt-127.992 152.45 lt-127.384 151.135 lt-127.012 149.718 lt-126.742 148.302 lt-126.607 146.683 lt-126.679 -66.78 lt-126.735 -68.0727 lt-126.961 -69.4778 lt-127.355 -70.9954 lt-127.889 -72.26 lt-128.565 -73.5808 lt-129.297 -74.6768 lt-130.423 -75.9695 lt-131.549 -77.0374 lt-132.816 -77.8524 lt-134.252 -78.6674 lt-136.25 -79.4542 lt-137.686 -79.8477 lt-139.966 -79.9882 lt-9.29708 -79.9986 lt-8.38218 -76.7902 lt-6.98873 -71.98 lt-4.87743 -61.3853 lt-3.63881 -51.0436 lt-3.31708 -43.5623 lt-3.34523 -37.1268 lt-3.62674 -41.5389 lt-4.49941 -45.4452 lt-5.54098 -48.1992 lt-7.06111 -51.0657 lt-9.34131 -54.2694 lt-11.4808 -56.4333 lt-13.3668 -58.0351 lt-15.3937 -59.5808 lt-18.2932 -61.0702 lt-20.8831 -62.1381 lt-22.9662 -62.6439 lt-25.6687 -63.2341 lt-28.8778 -63.3465 lt-99.977 -63.3149 lt-99.9956 146.658 lt-99.8549 148.484 lt-99.32 150.761 lt-98.8133 152.278 lt-98.0533 153.571 lt-97.2087 154.808 lt-96.2235 155.96 lt-95.0974 157.028 lt-93.8588 157.927 lt-92.3668 158.686 lt-90.9593 159.36 lt-89.3829 159.754 lt-87.1027 160.007 ltcl % cl% fic1 1 0 sc sfi% sk0 sg sk% End% Endend %% of Ipe figure%%EndDocument @endspecial 1315 2042 a Fv(The)44 b(Use)f(of)87 b(STL)17752297 y(and)969 2552 y(STL)42 b(Extensions)h(in)g(CGAL)13303207 y Fu(Release)25 b(3.0.1,)f(February)i(2004)p eop%%Page: 0 20 1 bop eop%%Page: 1 31 2 bop 71 757 a Ft(Pr)l(eface)73 1280 y Fr(C)t Fs(G)t(A)t(L)24b Fr(is)f(a)e Fq(Computational)f(Geometry)h(Algorithms)g(Libr)o(ary)hFr(written)f(in)h(C)2372 1277 y Fo(++)2457 1280 y Fr(,)g(de)n(v)o(eloped)d(by)i(a)h(consortium)d(consisting)71 1380 y(of)26b(ETH)g(Z)7 b(\250)-35 b(urich)25 b(\(Switzerland\),)h(Freie)h(Uni)n(v)o(ersit)5 b(\250)-33 b(at)25 b(Berlin)h(\(German)o(y\),)h(I)tFs(N)t(R)t(I)t(A)j Fr(Sophia-Antipolis)24 b(\(France\),)i(Martin-)711480 y(Luther)n(-Uni)n(v)o(ersit)5 b(\250)-33 b(at)22b(Halle-W)m(ittenber)o(g)g(\(German)o(y\),)g(Max-Planck)h(Institut)h(f)7 b(\250)-35 b(ur)24 b(Informatik,)e(Saarbr)7 b(\250)-35b(uck)o(en)22 b(\(German)o(y\),)73 1579 y(R)t Fs(I)t(S)t(C)hFr(Linz)d(\(Austria\))f(T)-6 b(el-A)g(vi)n(v)18 b(Uni)n(v)o(ersity)h(\(Israel\),)f(and)i(Utrecht)f(Uni)n(v)o(ersity)f(\(The)h(Netherlands\).)k(Y)-9 b(ou)19 b(can)h(\002nd)f(more)711679 y(information)f(about)h(the)h(project)f(on)h(the)i(C)tFs(G)t(A)t(L)h Fr(home)d(page)f(at)i(URL)g Fo(http://www.cgal.org)pFr(.)71 1870 y(Should)j(you)g(ha)n(v)o(e)h(an)o(y)f(questions,)h(comments,)g(remarks)f(or)h(criticism)g(concerning)g(C)tFs(G)t(A)t(L)r Fr(,)i(please)e(send)g(a)g(message)g(to)711970 y Fo(contact@cgal.org)p Fr(.)71 2341 y Fn(Editorial)30b(Committee)71 2618 y Fr(Andreas)19 b(F)o(abri)h(\()r(I)tFs(N)t(R)t(I)t(A)j Fr(Sophia-Antipolis\))71 2718 y(Susan)d(Hert)g(\(Max-Planck)e(Institut)i(f)7 b(\250)-35 b(ur)20 b(Informatik\))712817 y(Shai)g(Hirsch)g(\(T)-6 b(el-A)g(vi)n(v)19 b(Uni)n(v)o(ersity\))71 2917 y(Michael)h(Hof)n(fmann)e(\(ETH)h(Z)7 b(\250)-35b(urich\))71 3016 y(Lutz)20 b(K)n(ettner)f(\(Max-Planck)g(Institut)h(f)7 b(\250)-35 b(ur)19 b(Informatik\))71 3116 y(Monique)f(T)-6b(eillaud)20 b(\()r(I)t Fs(N)t(R)t(I)t(A)j Fr(Sophia-Antipolis\))713216 y(Remco)d(V)-9 b(eltkamp)19 b(\(Utrecht)g(Uni)n(v)o(ersity\))713315 y(Mariette)h(Yvinec)f(\()r(I)t Fs(N)t(R)t(I)t(A)kFr(Sophia-Antipolis\))71 3786 y Fn(A)-6 b(uthors)71 4063y Fr(Lutz)20 b(K)n(ettner)f(\(ETH)h(Z)7 b(\250)-35 b(urich\))714163 y(Andreas)19 b(F)o(abri)h(\()r(I)t Fs(N)t(R)t(I)t(A)jFr(Sophia-Antipolis\).)71 4535 y Fn(Ackno)o(wledgement)714811 y Fr(This)f(w)o(ork)f(w)o(as)i(supported)d(by)h(the)h(ESPRIT)g(IV)g(Long)f(T)-6 b(erm)21 b(Research)h(Projects)g(No.)g(21957)e(\(CGAL\))h(and)h(No.)f(28155)71 4911 y(\(GALIA\).)1902 5562 y(i)peop%%Page: 2 42 3 bop 1890 5562 a Fr(ii)p eop%%Page: 3 53 4 bop 71 765 a Ft(Contents)71 1387 y Fm(1)82 b(Intr)o(oduction)3067b(1)71 1677 y(2)82 b(Pr)o(eliminaries)3040 b(3)195 1877y Fr(2.1)86 b(P)o(air)21 b(\(pair)p Fo(<)p Fr(T1,T2)pFo(>)p Fr(\))71 b(.)41 b(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)115 b(3)712167 y Fm(3)82 b(Iterators)3204 b(5)195 2367 y Fr(3.1)86b(F)o(orw)o(ard)19 b(Iterator)g(\(forward)p 1249 236925 4 v 32 w(iterator\))41 b(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)115 b(6)195 2568 y(3.2)86 b(Bidirectional)20b(Iterator)f(\(bidirectional)p 1561 2570 V 31 w(iterator\))41b(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)115 b(6)1952768 y(3.3)86 b(Random)19 b(Access)i(Iterator)e(\(random)p1498 2770 V 32 w(access)p 1742 2770 V 34 w(iterator\))44b(.)d(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)115 b(7)195 2969 y(3.4)86b(Input)19 b(Iterator)g(\(input)p 1052 2971 V 33 w(iterator\))50b(.)41 b(.)h(.)f(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)115 b(8)195 3169 y(3.5)86 b(Output)20 b(Iterator)f(\(output)p1150 3171 V 32 w(iterator\))78 b(.)41 b(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)115 b(9)71 3459 y Fm(4)82b(Cir)o(culators)3072 b(13)195 3659 y Fr(4.1)86 b(F)o(orw)o(ard)19b(Circulator)h(\(Circulator\))j(.)42 b(.)f(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)74 b(14)195 3860 y(4.2)86b(Bidirectional)20 b(Circulator)f(\(Circulator\))56 b(.)42b(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)74b(15)195 4060 y(4.3)86 b(Random)19 b(Access)i(Circulator)f(\(Circulator\))77 b(.)41 b(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)74 b(15)195 4261 y(4.4)86 b(Adaptor:)24 b(Container)19b(with)i(Iterators)e(from)g(Circulator)43 b(.)e(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)74 b(17)195 4461 y(4.5)86 b(Adaptor:)24 b(Circulator)c(from)f(Iterator)31 b(.)41 b(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)74 b(19)195 4661 y(4.6)86 b(Adaptor:)24 b(Circulator)c(from)f(Container)72 b(.)42 b(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)74 b(21)71 4951 y Fm(5)82 b(Function)20 b(Objects)2866b(23)195 5152 y Fr(5.1)86 b(Arithmetic)20 b(operations)35b(.)41 b(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)74 b(23)195 5352 y(5.2)86 b(Comparisons)75b(.)41 b(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)74 b(24)1879 5562y(iii)p eop%%Page: 4 64 5 bop 71 2 a Fm(6)82 b(Sequence)21 b(Containers)2732b(25)195 193 y Fr(6.1)86 b(list)22 b(\(list)p Fo(<)pFr(T)p Fo(>)p Fr(\))38 b(.)j(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)74b(25)195 384 y(6.2)86 b(v)o(ector)19 b(\(vector)p Fo(<)pFr(T)p Fo(>)p Fr(\))75 b(.)41 b(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)74 b(28)195575 y(6.3)86 b(deque)19 b(\(deque)p Fo(<)p Fr(T)p Fo(>)pFr(\))30 b(.)41 b(.)g(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)74 b(30)71 849y Fm(7)82 b(Associati)o(v)o(e)20 b(Containers)2669 b(33)1951040 y Fr(7.1)86 b(set)21 b(\(set)p Fo(<)p Fr(Key,Compare)pFo(>)p Fr(\))78 b(.)41 b(.)g(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)74 b(33)195 1231 y(7.2)86b(multiset)21 b(\(multiset)p Fo(<)p Fr(Key,Compare)pFo(>)p Fr(\))37 b(.)k(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)74 b(35)195 1422 y(7.3)86 b(map)20 b(\(map)pFo(<)p Fr(Key,T,Compare)p Fo(>)p Fr(\))27 b(.)41 b(.)h(.)f(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)74 b(37)1951613 y(7.4)86 b(multimap)19 b(\(multimap)p Fo(<)p Fr(Key,T,Compare)pFo(>)p Fr(\))50 b(.)41 b(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)h(.)f(.)g(.)g(.)74b(40)71 1887 y Fm(Bibliograph)o(y)3136 b(41)71 2161 y(Index)3399b(42)1882 5562 y Fr(i)n(v)p eop%%Page: 1 71 6 bop 71 716 a Fv(Chapter)44 b(1)71 1222 y Ft(Intr)l(oduction)731745 y Fr(C)t Fs(G)t(A)t(L)23 b Fr(is)f(the)f Fq(Computational)d(Geometry)j(Algorithms)f(Libr)o(ary)h Fr(that)g(is)h(de)n(v)o(eloped)c(by)i(the)j(E)t Fs(S)t(P)t(R)t(I)t(T)h Fr(project)d(C)tFs(G)t(A)t(L)r Fr(.)28 b(The)71 1845 y(library)19 b(is)i(written)f(in)g(C)785 1842 y Fo(++)891 1845 y Fr(and)g(mak)o(es)g(hea)n(vily)f(use)i(of)f Fq(templates)p Fr(,)f(which)h(are)g(a)h(means)f(to)g(obtain)f(generic)g(code.)73 2036 y(S)t(T)t(L)24 b(is)f(the)f(Standard)e(T)-6b(emplate)22 b(Library)-5 b(.)27 b(Its)c(main)e(components)f(are)iFq(container)o(s)p Fr(,)f Fq(algorithms)p Fr(,)g Fq(iter)o(ator)o(s)iFr(and)e Fq(function)71 2136 y(objects)p Fr(.)j(This)c(library)e(is)i(part)f(of)g(the)h(ISO)f(C)1404 2133 y Fo(++)1509 2136y Fr(standard)f([C)p Fo(++)p Fr(98].)27 b(S)t(T)t(L)22b(is)e(more)e(than)h(a)h(library)-5 b(,)18 b(it)i(is)g(a)g(frame)n(w)o(ork)d(and)71 2235 y(a)j(programming)d(paradigm)i(which)g(w)o(as)i(adopted)e(by)h(the)i(C)t Fs(G)t(A)t(L)h Fr(project)c(for)h(its)h(library)e(of)h(geometric)f(algorithms.)71 2426 y(This)g(document)d(describes)j(in)g(a)g(simpli\002ed)f(w)o(ay)h(the)g(basic)f(features)g(of)j(S)t(T)t(L)r(.)e(After)f(reading)g(this)h(document)e(you)g(should)71 2526 y(be)j(able)h(to)g(use)f(these)h(features)f(which)g(are)g(used)h(throughout)c(the)23 b(C)t Fs(G)t(A)t(L)g Fr(library)-5b(.)25 b(This)20 b(document)f(is)j(neither)d(a)i(reference)712625 y(manual)k(nor)h(a)h(tutorial)f(for)i(S)t(T)t(L)r(.)f(F)o(or)g(the)f(sak)o(e)h(of)g(simplicity)f(we)h(sometimes)f(sacri\002ce)h(e)o(xactness.)44 b(If)26 b(you)g(compare)71 2725 y(what)21b(is)h(written)g(in)f(this)h(document)d(with)j(what)f(is)h(written)g(in)f(the)g(reference)f(manual)g(you)h(will)h(see)g(that)f(in)h(reality)f(things)71 2825 y(are)f(slightly)g(more)f(general)g(and)h(hence)f(slightly)h(more)g(complicated.)71 3016 y(If)28b(you)g(w)o(ant)g(to)g(de)n(v)o(elop)f(your)g(o)n(wn)h(iterators)g(or)g(containers,)h(this)g(is)g(de\002nitely)e(the)i(wrong)e(document)f(for)i(you.)48 b(W)-7 b(e)71 3115 y(recommend)18 b(to)i(ha)n(v)o(e)g(a)g(look)f(at)i(the)f(header)f(\002les)j(themselv)o(es)d(as)i(the)f(code)g(is)h(e)o(xtremely)d(instructi)n(v)o(e.)1893 5562 y(1)peop%%Page: 2 82 7 bop 1893 5562 a Fr(2)p eop%%Page: 3 93 8 bop 71 715 a Fv(Chapter)44 b(2)71 1221 y Ft(Pr)l(eliminaries)711792 y Fn(2.1)119 b(P)o(air)30 b(\()p Fl(pair)s Fj(<)pFl(T1,)f(T2)p Fj(>)p Fn(\))71 2164 y Fm(De\002nition)712354 y Fr(A)21 b(struct)f Fq(pair)i Fr(is)f(a)g(heterogeneous)c(pair)j(of)g(v)n(alues.)k(Its)d(data)f(members)f(are)h Fq(first)jFr(and)d Fq(second)r Fr(.)71 2544 y(#)p Fq(include)fFo(<)p Fq(pair)r Fo(>)71 2830 y Fm(Cr)o(eation)71 3044y Fq(pair)r Fo(<)p Fq(T1,)h(T2)p Fo(>)41 b Fq(p\()20b(T1)h(x,)f(T2)g(y\);)780 3234 y Fr(Introduces)e(a)i(pair)-5b(.)71 3616 y Fm(Operations)71 3830 y Fq(template)20b Fo(<)p Fq(class)h(T1,)f(class)h(T2)p Fo(>)71 3930 yFq(bool)560 b(pair)r Fo(<)p Fq(T1,T2)p Fo(>)19 b Fq(p)fFi(==)g Fq(pair)r Fo(<)p Fq(T1,T2)p Fo(>)i Fq(p1)71 4144y Fr(T)-6 b(est)21 b(for)e(equality:)25 b(T)-7 b(w)o(o)20b(pairs)g(are)g(equal,)g(if)n(f)g(their)g(data)g(members)f(are)h(equal.)71 4358 y Fq(template)g Fo(<)p Fq(class)h(T1,)f(class)h(T2)pFo(>)71 4457 y Fq(bool)560 b(pair)r Fo(<)p Fq(T1,T2)pFo(>)19 b Fq(p)f Fh(<)g Fq(pair)r Fo(<)p Fq(T1,T2)p Fo(>)iFq(p1)71 4671 y Fr(Le)o(xicographical)d(comparison)h(of)i(tw)o(o)g(pairs.)71 4957 y Fm(Example)189 5056 y Ff(Employee)39b(irene\("Irene",)g("Eneri"\);)189 5155 y(Employee)g(leo\("Leonard",)g("Eneri"\);)189 5253 y(typedef)f(int)h(Social)p 878 525323 4 v 27 w(security)p 1209 5253 V 28 w(number;)18935562 y Fr(3)p eop%%Page: 4 104 9 bop 189 2 a Ff(pair)p Fe(<)p Ff(Social)p 631 2 234 v 28 w(security)p 963 2 V 27 w(number,)39 b(Employee)pFe(>)g Ff(p1\(7812,)g(irene

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -