Title: Behaviour of `std::pmr::memory_resource::do_allocate()` is ambiguous · Issue #966 · cplusplus/draft · GitHub
Open Graph Title: Behaviour of `std::pmr::memory_resource::do_allocate()` is ambiguous · Issue #966 · cplusplus/draft
X Title: Behaviour of `std::pmr::memory_resource::do_allocate()` is ambiguous · Issue #966 · cplusplus/draft
Description: essentially a copy of this StackOverflow question. To quote N4606: virtual void* do_allocate(size_t bytes, size_t alignment) = 0; Requires: Alignment shall be a power of two. Returns: A derived class shall implement this function to retu...
Open Graph Description: essentially a copy of this StackOverflow question. To quote N4606: virtual void* do_allocate(size_t bytes, size_t alignment) = 0; Requires: Alignment shall be a power of two. Returns: A derived cla...
X Description: essentially a copy of this StackOverflow question. To quote N4606: virtual void* do_allocate(size_t bytes, size_t alignment) = 0; Requires: Alignment shall be a power of two. Returns: A derived cla...
Opengraph URL: https://github.com/cplusplus/draft/issues/966
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Behaviour of `std::pmr::memory_resource::do_allocate()` is ambiguous","articleBody":"essentially a copy of this [StackOverflow](http://stackoverflow.com/questions/40386696/behaviour-of-stdpmrmemory-resourceallocate-on-large-alignments) question.\r\n\r\nTo quote N4606: \r\n\u003e`virtual void* do_allocate(size_t bytes, size_t alignment) = 0;`\r\n\r\n\u003eRequires: Alignment shall be a power of two.\r\n\r\n\u003eReturns: A derived class shall implement this function to return a pointer to allocated storage (3.7.4.2) with a size of at least __bytes__. The returned storage is aligned to the specified alignment, if such alignment is supported; otherwise it is aligned to __max_align__.\r\n\r\n\u003eThrows: A derived class implementation shall throw an appropriate exception if it is unable to allocate memory with the requested size and alignment.\r\n\r\nThis is ambiguous: What happens if the alignment is a power of two but unsupported (e.g larger than __max_align__)? Is the returned storage aligned to __max_align__ or is an exception thrown?","author":{"url":"https://github.com/iolojz","@type":"Person","name":"iolojz"},"datePublished":"2016-11-04T20:37:32.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/966/draft/issues/966"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:5c6aa4ba-a173-438d-800d-acb7a86e3b06 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EB2A:469DE:30A3119:4519CEF:6A4C0D1B |
| html-safe-nonce | 8a3000dabef2f40d77545983b40fb73b07dfb9a77d578cee710c2c461d348cbf |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQjJBOjQ2OURFOjMwQTMxMTk6NDUxOUNFRjo2QTRDMEQxQiIsInZpc2l0b3JfaWQiOiI2NTQ0NTQzOTk3NzQxNTAxNzI0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | ca5dda5cb02b1602810deb26341ecb71a9cd71d4dfbc1558a95ed4fbc3710e5e |
| hovercard-subject-tag | issue:187432623 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/cplusplus/draft/966/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c15abfc907a6bb9b9d527ed87f42a604cc0dc4712c63206067fb958b5a87e459/cplusplus/draft/issues/966 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c15abfc907a6bb9b9d527ed87f42a604cc0dc4712c63206067fb958b5a87e459/cplusplus/draft/issues/966 |
| og:image:alt | essentially a copy of this StackOverflow question. To quote N4606: virtual void* do_allocate(size_t bytes, size_t alignment) = 0; Requires: Alignment shall be a power of two. Returns: A derived cla... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | iolojz |
| hostname | github.com |
| expected-hostname | github.com |
| None | 940b0dbb4d0fe72558ee760b2ff0f25a504383fdfe404f3a7691ec853b8dc17f |
| turbo-cache-control | no-preview |
| go-import | github.com/cplusplus/draft git https://github.com/cplusplus/draft.git |
| octolytics-dimension-user_id | 59276 |
| octolytics-dimension-user_login | cplusplus |
| octolytics-dimension-repository_id | 2216249 |
| octolytics-dimension-repository_nwo | cplusplus/draft |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 2216249 |
| octolytics-dimension-repository_network_root_nwo | cplusplus/draft |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | b0267d17ea43e55446153a7e2c60bb6ac3cffd6b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width