C99ã§è¿½å ããã restrict ãã¼ã¯ã¼ãã«ã¤ãã¦ã®ã¡ã¢ã ã³ã³ãã¤ã©ã«å¯¾ãã¦ãaliasãåå¨ããªãã¨ä»®å®ããæé©åã許ããã¨ä¼ããããã®ãã¼ã¯ã¼ããC99以éã§ã®ã¿æå¹ãªãã¼ã¯ã¼ãã§ãããC++11ç¾å¨ã§ãC++ã«ã¯åãã¼ã¯ã¼ããåå¨ããªããï¼ãã ãã³ã³ãã¤ã©ã®ç¬èªæ¡å¼µã¨ãã¦ãC++è¨èªã§ãrestirctãã¼ã¯ã¼ãã使ããã±ã¼ã¹ã¯ãããï¼ è¦ç´ï¼ æ§æçã«ã¯constãvolatileãã¼ã¯ã¼ãã¨ååã§ããã¤ã³ã¿åã«å¯¾ãã¦ã®ã¿å修飾ãè¡ãããint * restrictãªã©ãrestrict intãint restrict *ã¯ill-formed*1ã ã³ã³ãã¤ã©ã§ã®æé©åãå©ããããã®ãã®ãrestrictãã¼ã¯ã¼ããåé¤ãã¦ãããã°ã©ã ã®æå³ã¯å¤åããªãã ç¨æ³ã¨æå³ restrictãã¼ã¯ã¼ãã®ç¨æ³ã¯ãCæ¨æºã©ã¤ãã©ãªmemcpyé¢æ°ï¼memmoveé¢æ°ã«ãããåä½ä»
{{#tags}}- {{label}}
{{/tags}}