Compounds with two allyl substituents can form polymers containing' piperidine ring structures [Eq. (12)]:
Such chemistry of poly(diallylammonium salts) is discussed in detail by Butler  in a review which also outlines many uses found for cationic polymers. Similar chemistry is illustrated in Eq. (10).