core.internal.array.appending - D Programming Language
Description: D Programming Language
Keywords: D programming language

Menu

- Learn
- Documentation
  - Language Reference
  - Library Reference
  - Command-line Reference
  - Feature Overview
  - Articles
- Downloads
- Packages
- Community
  - Blog
  - Orgs using D
  - Twitter
  - Calendar
  - Forums
  - IRC
  - Community Discord
  - Wiki
  - GitHub
  - Issues
  - Get involved
  - Contributors
  - Foundation
  - Security Team
  - Donate
  - Sponsors
- Resources
  - Tour
  - Books
  - Tutorials
  - Tools
  - Editors
  - IDEs
  - run.dlang.io
  - Visual D
  - Acknowledgments
  - D Style
  - Glossary
  - Sitemap

Search
Report a bug
If you spot a problem with this page, click here to create a Bugzilla issue.
Improve this page
Quickly fork, edit online, and submit a pull request for this page. Requires a signed-in GitHub account. This works well for small changes. If you'd like to make larger changes you may want to consider using a local clone.

# core.internal.array.appending

This module contains support for controlling dynamic arrays' appending
License:
Distributed under the Boost Software License 1.0. (See accompanying file LICENSE)

Source core/internal/array/appending.d

template `_d_arrayappendcTXImpl`(Tarr : T[], T)
  Implementation of _d_arrayappendcTX and _d_arrayappendcTXTrace
  pure nothrow ref @trusted Tarr `_d_arrayappendcTX`(return ref scope Tarr `px`, size_t `n`);
    Extend an array `px` by `n` elements. Caller must initialize those elements.
    Parameters:

    Tarr `px` | the array that will be extended, taken as a reference
    size_t `n` | how many new elements to extend it with

    Returns:
    The new value of `px`
    Bugs:
    This function template was ported from a much older runtime hook that bypassed safety, purity, and throwabilty checks. To prevent breaking existing code, this function template is temporarily declared @trusted pure until the implementation can be brought up to modern D expectations.
  alias `_d_arrayappendcTXTrace` = _d_HookTraceImpl!(Tarr, _d_arrayappendcTX, errorMessage);
    TraceGC wrapper around rt.array.appending.d_arrayappendcTXImpl.d_arrayappendcTX.
    Bugs:
    This function template was ported from a much older runtime hook that bypassed safety, purity, and throwabilty checks. To prevent breaking existing code, this function template is temporarily declared @trusted pure until the implementation can be brought up to modern D expectations.
template `_d_arrayappendTImpl`(Tarr : T[], T)
  Implementation of _d_arrayappendT and _d_arrayappendTTrace
  pure nothrow ref @trusted Tarr `_d_arrayappendT`(return ref scope Tarr `x`, scope Tarr `y`);
    Append array `y` to array `x`.
    Parameters:

    Tarr `x` | what array to append to, taken as a reference
    Tarr `y` | what should be appended

    Returns:
    The new value of `x`
    Bugs:
    This function template was ported from a much older runtime hook that bypassed safety, purity, and throwabilty checks. To prevent breaking existing code, this function template is temporarily declared @trusted pure until the implementation can be brought up to modern D expectations.
  alias `_d_arrayappendTTrace` = _d_HookTraceImpl!(Tarr, _d_arrayappendT, errorMessage);
    TraceGC wrapper around rt.array.appending.d_arrayappendTImpl.d_arrayappendT.
    Bugs:
    This function template was ported from a much older runtime hook that bypassed safety, purity, and throwabilty checks. To prevent breaking existing code, this function template is temporarily declared @trusted pure until the implementation can be brought up to modern D expectations.

Copyright © 1999-2021 by the D Language Foundation | Page generated by Ddoc on Thu Mar 11 10:55:57 2021