struct

Etymology

Abbreviation of structure, used as a keyword in the C programming language and its descendants.

noun

  1. (computing, programming) A data structure, especially one that serves to group a number of fields (in contrast to an object-oriented class with methods) or one that is passed by value rather than by reference.
    Note that because structs are value types, the new operator does not work in the same way as it does for classes and other reference types. 2005, Christian Nagel, Bill Evjen, Jay Glynn, Karli Watson, Morgan Skinner, Allen Jones, Professional C# 2005, John Wiley & Sons, page 103
    Like most object-oriented languages, including Objective-C, Swift supports two basic object-oriented data structures: classes and structs. 2015, Michael Dippery, Professional Swift, John Wiley & Sons, page 62

Attribution / Disclaimer All definitions come directly from Wiktionary using the Wiktextract library. We do not edit or curate the definitions for any words, if you feel the definition listed is incorrect or offensive please suggest modifications directly to the source (wiktionary/struct), any changes made to the source will update on this page periodically.