Custom Views for the Rest of Us1Custom Views for the Rest of Us — Jacob Rice jacob.rice.cpp@gmail.com 2🎉🎆🎊 using namespace std::views; for (int i : iota(2) | filter(even) | transform(square)) std::cout << i << ' '; 1 AlgorithmThatSwaps(T& t1, T& t2) 2 { 3 // Algorithm stuff... 4 5 // More algorithm 6 } 7 Calls the custom version, if it exists (same for begin and end): 78std::ranges::iter_swap std::ranges::iter_move (P2387) New type: std::ranges::range_adaptor_closure. Ensure all closure objects inherit from this. Custom closure objects can then use it, too. 120namespace detail { template concept can_cons 0 码力 | 187 页 | 13.25 MB | 6 月前3
Compile-Time Compression and Resource Generation with C++20that take a user-suppiled lambda to generate the data needed to render our desired compile-time resource! These are e�ectively templated functions, but we will use the cleaner auto parameter syntax for0 码力 | 59 页 | 1.86 MB | 6 月前3
Apache Wicket 8.x Reference Guide. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 164 16. Resource management with Wicket . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 165 16.2. Resource references . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 172 16.6. Resource dependencies . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .0 码力 | 350 页 | 9.95 MB | 1 年前3
Apache Wicket 7.x Reference Guide. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 163 16. Resource management with Wicket . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 164 16.2. Resource references . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 171 16.6. Resource dependencies . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .0 码力 | 346 页 | 10.00 MB | 1 年前3
Falcon v3.0.0 DocumentationHTTPBadRequest(title='Malformed JSON', description=description) def process_response(self, req, resp, resource, req_succeeded): if not hasattr(resp.context, 'result'): return resp.text = json.dumps(resp.context Guide 19 Falcon Documentation, Release 3.0.0 (continued from previous page) def hook(req, resp, resource, params): length = req.content_length if length is not None and length > limit: msg = ('The size test this example go to the another terminal and run: $ http localhost:8000/1/things authorization:custom-token To visualize the application configuration the Inspect Module can be used: falcon-inspect-app0 码力 | 344 页 | 1.16 MB | 1 年前3
Falcon v3.0.1 DocumentationHTTPBadRequest(title='Malformed JSON', description=description) def process_response(self, req, resp, resource, req_succeeded): if not hasattr(resp.context, 'result'): return resp.text = json.dumps(resp.context Guide 19 Falcon Documentation, Release 3.0.1 (continued from previous page) def hook(req, resp, resource, params): length = req.content_length if length is not None and length > limit: msg = ('The size test this example go to the another terminal and run: $ http localhost:8000/1/things authorization:custom-token To visualize the application configuration the Inspect Module can be used: falcon-inspect-app0 码力 | 344 页 | 1.16 MB | 1 年前3
Falcon v3.0.0-b2 Documentationeffective. • Routes based on URI templates RFC • REST-inspired mapping of URIs to resources • Global, resource, and method hooks • Idiomatic HTTP error responses • Full Unicode support • Intuitive request Highly-optimized, extensible code base • Intuitive routing via URI templates and REST-inspired resource classes • No reliance on magic globals for routing and state management • Easy access to headers HTTPBadRequest(title='Malformed JSON', description=description) def process_response(self, req, resp, resource, req_succeeded): if not hasattr(resp.context, 'result'): return resp.text = json.dumps(resp.context0 码力 | 340 页 | 1.15 MB | 1 年前3
Falcon v2.0.0 Documentationeffective. • Routes based on URI templates RFC • REST-inspired mapping of URIs to resources • Global, resource, and method hooks • Idiomatic HTTP error responses • Full Unicode support • Intuitive request Highly-optimized, extensible code base • Intuitive routing via URI templates and REST-inspired resource classes • Easy access to headers and bodies through request and response classes • DRY request process_response(self, req, resp, resource): if not hasattr(resp.context, 'result'): return resp.body = json.dumps(resp.context.result) def max_body(limit): def hook(req, resp, resource, params): length = req0 码力 | 184 页 | 671.87 KB | 1 年前3
Apache Wicket 10.x Reference Guide. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 157 16. Resource management with Wicket . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 158 16.2. Resource references . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 165 16.6. Resource dependencies . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .0 码力 | 336 页 | 7.16 MB | 1 年前3
Apache Wicket 9.x Reference Guide. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 156 16. Resource management with Wicket . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 157 16.2. Resource references . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 164 16.6. Resource dependencies . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .0 码力 | 335 页 | 7.15 MB | 1 年前3
共 1000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 100













