What is restrict?

  • (verb): Make more specific.
    Synonyms: qualify
    See also — Additional definitions below


In the C programming language, as of the C99 standard, restrict is a keyword that can be used in pointer declarations. The restrict keyword is a declaration of intent given by the programmer to the compiler. It says that for the lifetime of the pointer, only it or a value directly derived from it (such as pointer + 1) will be used to access the object to which it points. This limits the effects of pointer aliasing, aiding caching optimizations. If the declaration of intent is not followed and the object is accessed by an independent pointer, this will result in undefined behavior. The use of the restrict keyword in C, in principle, allows non-obtuse C to achieve the same performance as the same program written in Fortran.

Read more about Restrict.

Some articles on restrict:

Simplified English - Specification Structure
... For example, they require writers to Restrict the length of noun clusters to no more than 3 words Restrict sentence length to no more than 20 words (procedural sentences ...
COINTELPRO - Intended Effects
... to the public) break down internal organization create dissension between groups restrict access to public resources restrict the ability to organize protests restrict the ability of individuals to ...
Low-carbohydrate Diet
... diets or low-carb diets are dietary programs that restrict carbohydrate consumption usually for weight control or for the treatment of obesity ... they restrict carbohydrate intake sufficiently to cause ketosis) ... The term "low-carbohydrate diet" is generally applied to diets that restrict carbohydrates to less than 20% of caloric intake, but can also refer to ...
Foreign Key - Referential Actions - RESTRICT
... Similarly, a row cannot be deleted as long as there is a reference to it from a foreign key table. ...

More definitions of "restrict":

  • (verb): Place under restrictions; limit access to.
    Example: "This substance is controlled"

Famous quotes containing the word restrict:

    A house means a family house, a place specially meant for putting children and men in so as to restrict their waywardness and distract them from the longing for adventure and escape they’ve had since time began.
    Marguerite Duras (b. 1914)

    The expectation that every neurotic phenomenon can be cured may, I suspect, be derived from the layman’s belief that the neuroses are something quite unnecessary which have no right whatever to exist. Whereas in fact they are severe, constitutionally fixed illnesses, which rarely restrict themselves to only a few attacks but persist as a rule over long periods throughout life.
    Sigmund Freud (1856–1939)