get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/1.1/patches/2226152/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 2226152,
    "url": "http://patchwork.ozlabs.org/api/1.1/patches/2226152/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/gcc/patch/bmm.hhuay3vzv6.gcc.gcc-TEST.ppalka.9.1.1@forge-stage.sourceware.org/",
    "project": {
        "id": 17,
        "url": "http://patchwork.ozlabs.org/api/1.1/projects/17/?format=api",
        "name": "GNU Compiler Collection",
        "link_name": "gcc",
        "list_id": "gcc-patches.gcc.gnu.org",
        "list_email": "gcc-patches@gcc.gnu.org",
        "web_url": null,
        "scm_url": null,
        "webscm_url": null
    },
    "msgid": "<bmm.hhuay3vzv6.gcc.gcc-TEST.ppalka.9.1.1@forge-stage.sourceware.org>",
    "date": "2026-04-22T10:14:42",
    "name": "[v1,1/3] libstdc++: Implement P1206R7 range-key-type and range-mapped-type helpers",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "4477bb3ac172b7f0417e67b14b0c29d93530a759",
    "submitter": {
        "id": 93215,
        "url": "http://patchwork.ozlabs.org/api/1.1/people/93215/?format=api",
        "name": "ppalka via Sourceware Forge",
        "email": "forge-bot+ppalka@forge-stage.sourceware.org"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/gcc/patch/bmm.hhuay3vzv6.gcc.gcc-TEST.ppalka.9.1.1@forge-stage.sourceware.org/mbox/",
    "series": [
        {
            "id": 500959,
            "url": "http://patchwork.ozlabs.org/api/1.1/series/500959/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/gcc/list/?series=500959",
            "date": "2026-04-22T10:14:41",
            "name": "libstdc++: Implement C++23 <flat_map> and <flat_set>",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/500959/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2226152/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2226152/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "<gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "gcc-patches@gcc.gnu.org"
        ],
        "Delivered-To": [
            "patchwork-incoming@legolas.ozlabs.org",
            "gcc-patches@gcc.gnu.org"
        ],
        "Authentication-Results": [
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org\n (client-ip=38.145.34.32; helo=vm01.sourceware.org;\n envelope-from=gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org;\n receiver=patchwork.ozlabs.org)",
            "sourceware.org; dmarc=none (p=none dis=none)\n header.from=forge-stage.sourceware.org",
            "sourceware.org;\n spf=pass smtp.mailfrom=forge-stage.sourceware.org",
            "server2.sourceware.org;\n arc=none smtp.remote-ip=38.145.34.39"
        ],
        "Received": [
            "from vm01.sourceware.org (vm01.sourceware.org [38.145.34.32])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g0w9r4X2gz1y2d\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 22 Apr 2026 20:16:32 +1000 (AEST)",
            "from vm01.sourceware.org (localhost [127.0.0.1])\n\tby sourceware.org (Postfix) with ESMTP id 9ECAF4B9DB75\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 22 Apr 2026 10:16:30 +0000 (GMT)",
            "from forge-stage.sourceware.org (vm08.sourceware.org [38.145.34.39])\n by sourceware.org (Postfix) with ESMTPS id 865BC4B9DB5B\n for <gcc-patches@gcc.gnu.org>; Wed, 22 Apr 2026 10:15:59 +0000 (GMT)",
            "from forge-stage.sourceware.org (localhost [IPv6:::1])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange x25519 server-signature ECDSA (prime256v1) server-digest SHA256)\n (No client certificate requested)\n by forge-stage.sourceware.org (Postfix) with ESMTPS id 5BC8C40554\n for <gcc-patches@gcc.gnu.org>; Wed, 22 Apr 2026 10:15:59 +0000 (UTC)"
        ],
        "DKIM-Filter": [
            "OpenDKIM Filter v2.11.0 sourceware.org 9ECAF4B9DB75",
            "OpenDKIM Filter v2.11.0 sourceware.org 865BC4B9DB5B"
        ],
        "DMARC-Filter": "OpenDMARC Filter v1.4.2 sourceware.org 865BC4B9DB5B",
        "ARC-Filter": "OpenARC Filter v1.0.0 sourceware.org 865BC4B9DB5B",
        "ARC-Seal": "i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1776852959; cv=none;\n b=kiE9nmdtWBBE04kXzJJiU9lbPO4dwj4rB1Zb7hYsP9ies5wRdfYcx9FS+w7P9Y+Byw1+cAjJvOfg9n4MKa7bBgiJG8f6WxS4xz0CexpQHa2mX7gR0Fh2lsGZAM4UwFMre2vW4aZhXwdYbENsy5mgIkPYo/CZ2OVTjKVbhcDahf8=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=sourceware.org; s=key;\n t=1776852959; c=relaxed/simple;\n bh=hj+eanlXfBs/qJvEnIaOOjvEMfy9g4uivMtcqVZBHgk=;\n h=From:Date:Subject:To:Message-ID;\n b=Gws3HIc5SerAwy6shYT6jx6UqvzIceCUf6gYXIejd4jq3Y4Nu/reBOQOYAfYnRRymYV1AICcVVAFM5SWkC687KbnoAPvWUXSUfp3EcfdDmyMPMJHOXGb0MJ+AjjeKfY3DJnazjbhwtWDY1Y33AoCMNRaxUcS8fXPEwjVb8SLbow=",
        "ARC-Authentication-Results": "i=1; server2.sourceware.org",
        "From": "ppalka via Sourceware Forge\n <forge-bot+ppalka@forge-stage.sourceware.org>",
        "Date": "Wed, 22 Apr 2026 10:14:42 +0000",
        "Subject": "[PATCH v1 1/3] libstdc++: Implement P1206R7 range-key-type and\n range-mapped-type helpers",
        "To": "gcc-patches mailing list <gcc-patches@gcc.gnu.org>",
        "Message-ID": "\n <bmm.hhuay3vzv6.gcc.gcc-TEST.ppalka.9.1.1@forge-stage.sourceware.org>",
        "X-Mailer": "batrachomyomachia",
        "X-Requested-Reviewer": "redi",
        "X-Pull-Request-Organization": "gcc",
        "X-Pull-Request-Repository": "gcc-TEST",
        "X-Pull-Request": "https://forge.sourceware.org/gcc/gcc-TEST/pulls/9",
        "References": "\n <bmm.hhuay3vzv6.gcc.gcc-TEST.ppalka.9.1.0@forge-stage.sourceware.org>",
        "In-Reply-To": "\n <bmm.hhuay3vzv6.gcc.gcc-TEST.ppalka.9.1.0@forge-stage.sourceware.org>",
        "X-Patch-URL": "\n https://forge.sourceware.org/gcc/gcc-TEST/commit/891503b8b697daebb5bada203a1e08ff31a4887b",
        "X-BeenThere": "gcc-patches@gcc.gnu.org",
        "X-Mailman-Version": "2.1.30",
        "Precedence": "list",
        "List-Id": "Gcc-patches mailing list <gcc-patches.gcc.gnu.org>",
        "List-Unsubscribe": "<https://gcc.gnu.org/mailman/options/gcc-patches>,\n <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe>",
        "List-Archive": "<https://gcc.gnu.org/pipermail/gcc-patches/>",
        "List-Post": "<mailto:gcc-patches@gcc.gnu.org>",
        "List-Help": "<mailto:gcc-patches-request@gcc.gnu.org?subject=help>",
        "List-Subscribe": "<https://gcc.gnu.org/mailman/listinfo/gcc-patches>,\n <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe>",
        "Reply-To": "gcc-patches mailing list <gcc-patches@gcc.gnu.org>,\n ppalka@gcc.gnu.org",
        "Errors-To": "gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org"
    },
    "content": "From: Patrick Palka <ppalka@redhat.com>\n\nThese helpers will be needed in the upcoming <flat_map> and <flat_set>\nimplementations.\n\nlibstdc++-v3/ChangeLog:\n\n\t* include/bits/ranges_base.h (__detail::__range_key_type):\n\tDefine as per P1206R7.\n\t(__detail::__range_mapped_type): Likewise.\n---\n libstdc++-v3/include/bits/ranges_base.h | 8 ++++++++\n 1 file changed, 8 insertions(+)",
    "diff": "diff --git a/libstdc++-v3/include/bits/ranges_base.h b/libstdc++-v3/include/bits/ranges_base.h\nindex a2c743ff56bc..c8cd4e87b12c 100644\n--- a/libstdc++-v3/include/bits/ranges_base.h\n+++ b/libstdc++-v3/include/bits/ranges_base.h\n@@ -1087,6 +1087,14 @@ namespace __detail\n     concept __container_compatible_range\n       = ranges::input_range<_Rg>\n \t  && convertible_to<ranges::range_reference_t<_Rg>, _Tp>;\n+\n+  template<ranges::input_range _Range>\n+    using __range_key_type\n+      = remove_const_t<typename ranges::range_value_t<_Range>::first_type>;\n+\n+  template<ranges::input_range _Range>\n+    using __range_mapped_type\n+      = typename ranges::range_value_t<_Range>::second_type;\n }\n /// @endcond\n #endif\n",
    "prefixes": [
        "v1",
        "1/3"
    ]
}